Swing bug? cannot set width of JToggleButton

Hello,
Just wondered if this was a Swing bug. See also
bug 6349010.
The width of the JToggleButton cannot be set.
However the height can be set.
The important line is line 135 - and also 140.
Try changing the width of the button - it does not change.
thanks,
Anil
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.util.EventObject;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JToggleButton;
import javax.swing.JTree;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellEditor;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeSelectionModel;
public class TreeUIFailed extends JPanel {
       AnilTreeCellRenderer3 atcr;
       AnilTreeCellEditor4 atce;
       DefaultTreeModel treeModel;
       JTree tree;
       DefaultMutableTreeNode markedNode = null;
     public TreeUIFailed() {
            super(new BorderLayout());
               treeModel = new DefaultTreeModel(null);
               tree = new JTree(treeModel);          
              tree.setEditable(true);
               tree.getSelectionModel().setSelectionMode(
                         TreeSelectionModel.SINGLE_TREE_SELECTION);
               tree.setShowsRootHandles(true);
              tree.setCellRenderer(atcr = new AnilTreeCellRenderer3());
              tree.setCellEditor(atce = new AnilTreeCellEditor4(tree, atcr));
              tree.setRowHeight(0);//TEMP - needed only if setting Win L&F
               JScrollPane scrollPane = new JScrollPane(tree);
               add(scrollPane,BorderLayout.CENTER);
     public void setRootNode(DefaultMutableTreeNode node) {
          treeModel.setRoot(node);
          treeModel.reload();
       public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException{
//            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            TreeUIFailed tb = new TreeUIFailed();
            tb.setPreferredSize(new Dimension(800,600));
              JFrame frame = new JFrame("Tree Windows UI Failed");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setContentPane(tb);
              frame.setSize(800, 600);
              frame.pack();
              frame.setVisible(true);
              tb.populate();
     private void populate() {
          TextAreaNode3 r = new TextAreaNode3(this);
           setRootNode(r);
               r.gNode.notes.addTab("0", null/* icon */, new JTextArea(2,25),
               "no menu!");
               r.gNode.notes.addTab("1", null/* icon */, new JTextArea(2,25),
               "no menu!");
               TextAreaNode3 a = new TextAreaNode3(this);
               a.gNode.notes.addTab("1", null/* icon */, new JTextArea(2,25),
               "no menu!");
           treeModel.insertNodeInto(a, r, r.getChildCount());          
class AnilTreeCellRenderer3 extends DefaultTreeCellRenderer{
     TreeUIFailed panel;
DefaultMutableTreeNode currentNode;
  public AnilTreeCellRenderer3() {
     super();
public Component getTreeCellRendererComponent
   (JTree tree, Object value, boolean selected, boolean expanded,
   boolean leaf, int row, boolean hasFocus){
     TextAreaNode3 currentNode = (TextAreaNode3)value;
     NodeGUI4 gNode = (NodeGUI4) currentNode.gNode;
    return gNode.vBox;
class AnilTreeCellEditor4 extends DefaultTreeCellEditor{
  DefaultTreeCellRenderer rend;
  public AnilTreeCellEditor4(JTree tree, DefaultTreeCellRenderer r){
    super(tree, r);
    rend = r;
  public Component getTreeCellEditorComponent(JTree tree, Object value,
   boolean isSelected, boolean expanded, boolean leaf, int row){
    return rend.getTreeCellRendererComponent(tree, value, isSelected, expanded,
     leaf, row, true);
  public boolean isCellEditable(EventObject event){
    return true;
* this is done to keep gui separate from model - as in MVC.
* not necessary.
* @author juwo
class NodeGUI4 {
     JPanel notesPanel = new JPanel(new BorderLayout(), true);
     JTabbedPane notes = new JTabbedPane(JTabbedPane.RIGHT);
     final TreeUIFailed view;
     Box vBox = Box.createVerticalBox();
     Box hBox = Box.createHorizontalBox();
     final JTextArea textArea = new JTextArea( 1, 5 );
     JToggleButton toggleButton = new JToggleButton();
     NodeGUI4( TreeUIFailed view_ ) {
          this.view = view_;
          toggleButton.setAlignmentX(Component.CENTER_ALIGNMENT);
// BEGIN PROBLEM          
          toggleButton.setPreferredSize(new Dimension(200,toggleButton.getPreferredSize().height));
// END PROBLEM
          vBox.add(toggleButton);
          vBox.add(hBox);
          hBox.add( textArea );
          textArea.setBorder( BorderFactory.createMatteBorder( 0, 0, 1, 0, Color.GREEN ) );
          notesPanel.add(notes);
          hBox.add( notesPanel);
          hBox.setBorder( BorderFactory.createMatteBorder( 5, 5, 5, 5, Color.CYAN ) );
// THE FOLLOWING DOES NOT WORK EITHER!!!          
          //          halo.setPreferredSize(new Dimension(vBox.getPreferredSize().width,halo.getPreferredSize().height));
class TextAreaNode3 extends DefaultMutableTreeNode {  
     NodeGUI4 gNode;
     TextAreaNode3(TreeUIFailed view_t) {     
          gNode = new NodeGUI4(view_t);          
}

ok, sorry!
I understood why it does not work.
Box Layout respects the maximum size of the component.
By default, a JToggleButton is set to 34.
Changing the JToggleButton max width to 75, allows the preferred size to be set.
Thank you camickr!
Note: in contrast, Flow Layout respects the preferred size and ignores the max size!
Message was edited by:
anilp1

Similar Messages

  • BUG : Cannot set Nokia Messaging as default client...

    Hi,
    Nokia Email  v.9.5.3.75 on Nokia E71 (firmware v300.21.012). 
    Mail for Exchange v2.09.158.
    I can select 'E-mail'  as default mailbox in 'messages > settings'. However when in Gallery and trying to send a picture from the list it opens Mail for Exchange client ! And when opening the picture .. and then trying to send .. it lets me choose the mailbox (that should happen in the list-view also !) .. but .. when i try to send via 'E-mail' (the default) nothing happens !
    Please fix a.s.a.p. since these are pretty basic functions if you ask me that should have been tested !

    I actually got this to work.  When I did the check for new firmware, the system told me I was up to date.  I reflashed the firmware anyway.  From a blank device, everything is integrated perfectly.
    Whe I go the new phone, I used the  backup and restore function of Nokia PC suit to restore settings to my phone.  When I did that (with up to date firmware) I had the problems mentioned above.  I suspect then that this is an issue with the restore function, although I have not bothered to isolate the issue as I now have a working phone.
    So what worked for me is:
    1) Run firmware update.  
    2) Firmware update tells me my phone is up to date and asks if I want to replace the firmware anyway.  I chose yes
    3) Reflash and lose all programs, data, themes, etc.
    4) Completely set up the phone from scratch
    5) Everything works beautifully, except for the 4 hours of my life I will never get back

  • Cannot set up certs for trusted CAs

    HI
    If i try to run my aplication I am getting the following exception
    ---------- JavaRun ----------
    subString1.3
    1.3........................1.3.1_07
    Exception occurred during event dispatching:
    java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs
    at javax.crypto.b.<clinit>([DashoPro-V1.2-120198])
    at javax.crypto.Cipher.getInstance([DashoPro-V1.2-120198])
    at EncryptionFactoryImpl.<init>(EncryptionFactoryImpl.java:74)
    at CheckXML.endElement(CheckXML.java:54)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1489)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
    at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
    at Authenticate.verify(Authenticate.java:29)
    at Login.actionPerformed(Login.java:112)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1445)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1499)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:373)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:245)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:211)
    at java.awt.Component.processMouseEvent(Component.java:3710)
    at java.awt.Component.processEvent(Component.java:3539)
    at java.awt.Container.processEvent(Container.java:1159)
    at java.awt.Component.dispatchEventImpl(Component.java:2588)
    at java.awt.Container.dispatchEventImpl(Container.java:1208)
    at java.awt.Component.dispatchEvent(Component.java:2492)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
    at java.awt.Container.dispatchEventImpl(Container.java:1195)
    at java.awt.Window.dispatchEventImpl(Window.java:923)
    at java.awt.Component.dispatchEvent(Component.java:2492)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
    Can someone tell me the solution for this , it is very urgent
    thanks in advance

    I got the exact same problem on my server yesterday (Aug 1st) after I restarted it. Apparently on July 28th 2005 the certificate that jce 1.2.1 crypto package uses expired. I was able to confirm this by setting the server clock back to before July 28th and everything worked fine. I updated to jce 1.2.2 (http://java.sun.com/security/index.jsp) and it resolved my problem.

  • [svn:fx-trunk] 15267: Cannot set Spark Label or Spark RichText showTruncationTip property at runtime using bindngs or ActionScript .

    Revision: 15267
    Revision: 15267
    Author:   [email protected]
    Date:     2010-04-07 15:57:04 -0700 (Wed, 07 Apr 2010)
    Log Message:
    Cannot set Spark Label or Spark RichText showTruncationTip property at runtime using bindngs or ActionScript.
    QE notes:
    Doc notes: None
    Bugs: partial fix for SDK-25980
    Reviewed By: Gordon
    Tests run: checkintests
    Fix Label styles baselineShift and typographicCase so they work as documented.  The documentation is from TLF.
    QE notes:
    Doc notes: None
    Bugs: partial fix for SDK-25169, SDK-25210
    Reviewed By: Gordon
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25980
        http://bugs.adobe.com/jira/browse/SDK-25169
        http://bugs.adobe.com/jira/browse/SDK-25210
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as

    I'd have to see the xml to say what, but 1009 is what it says - a null reference has no properties, it is null.
    Try tracing out SampleWebServiceCS.GetMember and you'll quickly see where along your .element.element path you have an error.
    (BTW, I've not used s:Operation before, but is your syntax correct?)
    G

  • SoapDoc::Init: Cannot set inout buffer

    My calls to http://...:8000/sap/bc/soap/rfc worked fine for several years.
    However, since I installed basis support packages 61-63 for basis 6.20 (SAPKB62061 to SAPKB62063), I get the following error:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
      - <SOAP-ENV:Body>
        - <SOAP-ENV:Fault>
          <faultcode>SOAP-ENV:Server</faultcode>
          <faultstring>Internal Server Error</faultstring>
          <detail>SoapDoc::Init: Cannot set inout buffer</detail>
          </SOAP-ENV:Fault>
        </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>"<faultstring>Internal Server Error</faultstring> <detail>SoapDoc::Init: Cannot set inout buffer</detail>".
    (Fortunately, our applications using webservices are still working properly.)
    What has changed in these basis support packages. Is there a bug fix for it?
    Regards
    Walter

    Hello Walter,
    I am trying to create web services was620 r/3 4.7 Getting the same error. Also if you can provide input on creating web services using function module (remotelyenabled)
    thanks,
    jim

  • How to export all Artboards for different mobile resolutions? e.g. My artboards are 1080 x 1920 px, I want them all to 216 x 384px... ( I m using export .png by adjust ppi, but cannot set less than 72ppi)

    e.g. My artboards are 1080 x 1920 px, I want them all to 216 x 384px...
    ( I am using export .png by adjust ppi, but cannot set less than 72ppi)

    Sorry to hear that. There is an enhanced version on Adobe Exchange that may be more "bug free".
    https://creative.adobe.com/addons/products/2955#.VNQ6Asbdkqg
    You might want to test is on a smaller file and see if it will export the PNGs at the proper resolution. My quick test showed that it did.
    You can delete the "Layer" export and get JUST the Artboards by choosing "Export Layers>None". You may have already tried that.
    You might also break your file into 2 or more files and see if it works with fewer artboards.
    I have had good success with the free version. Perhaps the paid version will solve the issue.

  • Cannot set margins to 0 on Canon Pro9000

    i cannot set the print margins in lightroom 2.3 to 0. I'm not sure why this is the case. the problem just started. i could do it earlier today. as near as i can tell this occurs at all print sizes - 4x6, 5x7.... i reinstalled the driver for my canon printer (Canon Pixma Pro9000), but the problem persists. i can print borderless in photoshop cs3 and the printer seems to be working fine in other applications like Word and IE.
    for example, if i select a 4x6 paper size (4" x 6" 10x15 cm), then the print margins appear to be stuck at the following settings
    left: 0.14
    right: 0.12
    top: 0.11
    bottom: 0.21
    the max cell size allowed is the following:
    height: 5.68
    width: 3.50
    i cannot set the margins any lower than the above values without triggering an error message that says i am out of range below 0.14, etc. i cannot change the cell size to 6 x 4 without triggering a dialogue box that says i can't do that.
    i have no idea why this is occurring and don't seem to be able to fix the problem. i need to be able to print borderless pictures. it doesn't matter whether i select borderless from within the Page Setup. no matter what i try to do, i cannot print borderless any more.
    please help!

    I doubt there is a sync issue between LR and the printer driver. Pretty sure the LR team is aware of this printer model and working to assure its usefulness.
    After selecting the Borderless Printing checkbox in the printer driver, there were some settings revealed to control the "over spray."  Have you tried working with these settings to coordinate with LR? I haven't done any borderless printing, I'm just good at getting these things to work together and usually it is a configuration issue over a compatibility or sync issue.
    A feature of the Print Templates in LR is that they hold driver settings as well as LR settings. I've worked with folks who thought that you set up your driver and then select a template... this doesn't work because the template will set the driver to its settings - probably the ones that are incorrect. This is why my last direction was to update or create a new template after changing the driver.

  • In FrameMaker 9.0.3 and 9.0.4, I cannot set tab stops for a style in the Paragraph Designer.

    In FrameMaker 9.0.3 and 9.0.4, I cannot set tab stops for a style in the paragraph designer. Here are the steps to dysfunction:
    1. In Paragraph Designer, for Tab Stops, click Edit. Edit Tab Stop dialog box opens, and the Paragraph Designer dialog box closes.
    2. Type value in New Position box.
    3. Click Continue. The Edit Tab Stop box closes.
    4. Open Paragraph Designer. No tabs are recorded.
    Discussion of a similar problem occured on this forum in June 2010. At that time, the resolution seemed to be to upgrade to 9.0.3. Has anyone else encountered this problem with these versions?
    Thanks.

    Hi, Arnis,
    Brilliant! Thanks so much. I only looked at the later discussions of that thread, which seemed to indicate the problem would be solved by an upgrade to 9.0.3.
    -Trish

  • When I click the iCloud button I get a browser with check boxes, not slider buttons and it does not have a "backup and storage" button.  So I cannot set up backup.

    When I open my iCloud browser it looks different than "normal." It shows the list with check boxes, not slider on-off buttons.  It dos not show a "storage and backup" button so I cannot set up my backup. What is wrong?

    If see something like the image below it's because you are looking at the iCloud settings on your Mac, not on an iOS device (which has sliders).  Storage & Backup isn't in the Mac settings because you cannot back up your Mac to iCloud.  Only iOS devices can back up to iCloud.  On a Mac, you can get information about your iCloud account storage by looking at the green usage bar at the bottom and by clicking the "Manage..." button on the bottom right.

  • When I try to create a calendar announcement in my iCloud calendar thru my PC / Outlook, it says 'the set of folders could not be opened. The information store could not be opened'. Can anyone help?  This means I cannot set any calendar events thru my PC.

    When I try to create an iCloud calendar announcement / event on my PC thru Outlook, I get the message 'the set of folders could not be opened.  The information store could not be opened'.
    I cannot set any calendar events for my shared calendar.  Can ayone help?

    If you upgraded to Windows 8 you may need to update the iCloud control panel for Windows to version 2.1 (see http://support.apple.com/kb/TS4463).

  • Cannot set Windows 7 default printer in Boot Camp

    I discovered today that I cannot set a default printer in Windows 7.  I right click, and try to make one of the printers default but there is no check mark.  One of the programs that I use says I do not have a printer installed. 
    I can print to my printers using Word by selecting the printer that I want but cannot select a default in control panel.
    If I access Windows programs using a VM Fusion, the program that says there is no printer installed in boot camp, does not give be this message and I can select a printer.  BTW, I have never been able to select a "default printer" using VM Fusion.
    The only thing unusual is I had to reactivate Windows for no apparent reason last week and I cannot select all of the Themes available in the personalize menu. 
    It is difficult to pinpoint when the printer issue started because I mainly access my Windows programs through VM Fusion.  I am guessing the changes happened when I had to reactivate Windows
    I am away from my iMac currently and was wondering if anyone has experienced this and/or have a suggestion.?
    Thanks,
    Roy

    Update.
    Apparently this is a Windows Registry issue.  Looks as if there is a VM Fusion driver set as default (thinprint??)  I cannot delete or modify this registry key.  A new profile solves this issue and I will have to copy everything over to the new profile, if I cannot get this registry key issue solved.  I will post on a Microsoft board to see if there is a solution.
    Roy

  • Cannot set status of Urgent Change after manual transport

    Hi all,
    We are usng CHARM in Solution Manager 7.1 for import to the SAP ECC (EHP6) systems.
    I cannot set the status of the Urgent Change document (ZMHF) to status "To be Tested" after the transports were manually released and manually imported to the ECC QA system.
    When I use action "Pass Urgent Change to Test", the system stopped with error "Not all task are yet released" and will not change the status .
    Based, on the Task List log, the system started the release process although no transports were released.
    Is there any way that I can update the status of the Urgent Change document to "To be Tested"?
    I tried program CRM_SOCM_SERVICE_REPORT but still did not change the status.
    Any suggestion?
    Thanks,
    Tess

    Hi Venu,
    have a look under System Administration - System Configuration -- Knowledge Management -- Configuration --Content Management -- User Interface -- Commands -- UI Command Groups -- StatemanagementGroup.
    See Java class: com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementGroupCommand. Take the class and decompile this and everything needed around to understand how this class works.
    Then you can choose to extend this CommandGroup to also have a command "Resubmit for Approval" or you can implement your own UI Command only for resubmitting (you will also have to activate your command (group) by settings within the configuration).
    On the other hand, if all this is completely new to you, I'm a bit sceptical if the task isn't a bit too big as a first task on KM implementation topics...?
    Hope it helps
    Detlev

  • [Solved?] VLC won't play audio -- cannot set buffer duration

    I can't play sound in VLC. I have tried the default and the ALSA outputs. I know ALSA works, because mpg123, speaker-test, and rdesktop's sound all work. (Saying that, I can't tell if mpg123 uses alsa or not - rdesktop does though)
    Attempting to play something in VLC gives me some rather cryptic errors. What follows is the output of "vlc -v" and an attempt to play a video with sound. I have split the "code"-tag just before the actual error output for clarity and ease of scanning.
    VLC media player 2.0.7 Twoflower (revision 2.0.6-54-g7dd7e4d)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/audio_output/libportaudio_plugin.so' (libportaudio.so.2: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/audio_output/libjack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/services_discovery/libmtp_plugin.so' (libmtp.so.9: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/notify/libxosd_plugin.so' (libxosd.so.2: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libprojectm_plugin.so' (libprojectM.so.2: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libtwolame_plugin.so' (libtwolame.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libvcdx_plugin.so' (libvcdinfo.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_jack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_dv_plugin.so' (libavc1394.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_mtp_plugin.so' (libmtp.so.9: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/video_output/libaa_plugin.so' (libaa.so.1: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/video_output/libcaca_plugin.so' (libcaca.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/control/liblirc_plugin.so' (liblirc_client.so.0: cannot open shared object file: No such file or directory)
    [0x8eb108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    [0x7f1e6cc01bf8] mkv demux warning: MKV/Ebml Parser: m_el[mi_level] == NULL
    [0x7f1e6cc01bf8] mkv demux warning: MKV/Ebml Parser: Up cannot escape itself
    Fontconfig warning: FcPattern object size does not accept value "0"
    [0x7f1e68c068a8] alsa audio output error: cannot set buffer duration: Invalid argument
    [0x7f1e68c068a8] pulse audio output error: PulseAudio server connection failure: Connection refused
    [0x7f1e68c068a8] oss audio output error: cannot open audio device (/dev/dsp)
    [0x7f1e68c068a8] main audio output error: no suitable audio output module
    Fontconfig warning: FcPattern object size does not accept value "0"
    [0x7f1e6cc02b68] main decoder error: failed to create audio output
    I have reproduced this with the same result using 'sudo vlc-wrapper' and I am added to the 'audio' group.
    I have no idea where to start with this issue, I've tried googling but it seems that only one person has ever had this issue before (if Google is to be considered a reputable source), and he was running his own VLC build. I am running the build "pacman -S vlc" gave me. If anyone could point me in the right direction on this issue I'd be grateful.
    Edit: This is my /etc/asound.conf. I have no idea what any of this means, at this point it's fill-in-the-blanks wiki copypasta (Edit2: The purpose of this file is to try to stop alsa from sending all my sound through a disconnected HDMI instead of the speakers)
    # Use PulseAudio by default
    #pcm.!default {
    # type pulse
    # fallback "sysdefault"
    # hint {
    # show on
    # description "Default ALSA Output (currently PulseAudio Sound Server)"
    #ctl.!default {
    # type pulse
    # fallback "sysdefault"
    pcm.!default {
    type plug
    slave.pcm {
    @func getenv
    vars [ ALSAPCM ]
    default "hw:Generic_1"
    # vim:set ft=alsaconf:
    Last edited by Score_Under (2013-08-02 23:23:27)

    Situation update:
    1. I didn't need my asound.conf like that -- I should have used pulseaudio in the first place, I was unaware that ALSA does not allow more than one program to use the sound device at the same time, whereas pulseaudio is used to mix sounds.
    2. VLC works fine on PulseAudio. No idea why it failed on ALSA!
    Last edited by Score_Under (2013-08-02 23:22:45)

  • Need help on  ORA-02074: cannot SET NLS in a distributed transaction

    Hi All,
    I am Writing a plsql Code like this
    DECLARE
    op_job_id NUMBER;
    op_object_version_number NUMBER;
    x_job_definition_id NUMBER;
    op_name VARCHAR2(1000);
    L_VERIFY_FLAG VARCHAR2(1);
    l_error_message VARCHAR2(2000);
    BG_ID NUMBER;
    lv_job_group_id APPS.per_job_groups.job_group_id@SYSTEM_LINK_VISMA%TYPE;
    CURSOR C1 IS SELECT * FROM EBS_PER_JOBS_STG;
    BEGIN
    FOR H1 IN C1
    LOOP
    BEGIN
    IF H1.BUSINESS_GROUP_NAME IS NOT NULL THEN
    SELECT BUSINESS_GROUP_ID,job_group_id INTO BG_ID,lv_job_group_id
    FROM APPS.PER_JOB_GROUPS@SYSTEM_LINK_VISMA
    WHERE DISPLAYED_NAME=H1.JOB_GROUP_NAME;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    L_VERIFY_FLAG := 'E';
    l_error_message := 'Entered Job Group Name is Wrong';
    END;
    -->> JOB GROUP ID <<--
    APPS.hr_job_api.CREATE_JOB@SYSTEM_LINK_VISMA
    (p_business_group_id => BG_ID
    ,p_date_from => H1.DATE_FROM
    ,p_approval_authority => H1.APPROVAL_AUTHORITY
    ,p_emp_rights_flag => H1.EMP_RIGHTS_FLAG
    ,p_benchmark_job_flag => H1.BENCHMARK_JOB_FLAG
    ,p_job_group_id => lv_job_group_id
    ,p_job_information1 => H1.JOB_INFORMATION1
    ,p_job_information2 => H1.JOB_INFORMATION2
    ,p_job_information3 => H1.JOB_INFORMATION3
    ,p_job_information4 => H1.JOB_INFORMATION4
    ,p_job_information5 => H1.JOB_INFORMATION5
    ,p_job_information6 => H1.JOB_INFORMATION6
    ,p_job_information7 => H1.JOB_INFORMATION7
    ,p_segment3 => H1.JOB_CODE --JOB_CODE
    ,p_segment6 => H1.JOB_NAME --JOB_NAME
    ,p_job_id => op_job_id
    ,p_object_version_number => op_object_version_number
    ,p_job_definition_id => x_job_definition_id
    ,p_name => op_name);
    dbms_output.PUT_LINE('OUTPUT JOB NAME CREATED : '||op_name);
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.PUT_LINE('Error Message Is: '||SQLERRM);
    END;
    i am running it in Another database Using database link connecting to Apps.
    when i am running it am getting the following Error:
    Error Message Is: ORA-02074: cannot SET NLS in a distributed transaction
    ORA-06512: at "APPS.HR_KFLEX_UTILITY", line 2423
    ORA-06512: at "APPS.HR_KFLEX_UTILITY", line 2380
    ORA-06512: at "APPS.PER_JBT_UPD", line 468
    ORA-02074: cannot SET NLS in a distributed transaction
    ORA-06512: at "APPS.HR_JOB_API", line 878
    Please help me on this, this is quite urgent to me.
    thanks
    sri

    Please see these docs.
    ORA-02074: Cannot SET NLS in a Distributed Transaction [ID 556391.1]
    Portal Used To Call PO_CHANGE_API1_S: ORA-20001: ORA-02074: Cannot SET NLS In A Distributed Transaction [ID 561246.1]Why are Concurrent Programs Calling FND_GLOBAL.APPS_INITIALIZE Using DBLinks Failing? [ID 466800.1]
    ORA-02074 when Executing set_nls over a DB Link [ID 132679.1]
    Thanks,
    Hussein

  • Viewlink between Custom VO "Cannot set user query to view"

    We have an application where we have extended custom VO and EO’s to get data from flat files. It all looks fine till we create a viewlink for a LOV with two related VO’s. The viewlink VO fails we get message of the form -Cannot set user query to view "CustomVO1" because it is a destination in a view link”. Are there any methods to override in the custom VO/EO or any parameter to be added to configs. Has someone tried this out

    Thanks for the update and for sharing the solution!
    Regards,
    Hussein

Maybe you are looking for

  • GRC! Realmente devo investir em aprende-lo só agora?

    Boa noite, Sou consultor PI da Gafisa S.A construtora em SP. Aqui não precisamos implementar o GRC, a SPED foi feito por um software de terceiro e a única coisa que temos desenvolvida no PI são interfaces que levam informações para o SQL desse softwa

  • What compelling reasons are there for UK users to upgrade nano - vid ipod?

    Hi, I just wanted to point out a very fundamental flaw in Apples grand plan at the minute (at least as far as the UK is concerned). I'm a recent convert...I love Apple....I breathe Apple ...I buy their products everyday but at the minute I see no com

  • How do you edit-in a "stop" into a screen recording and then insert a "button" to link to a document

    Ok, so I am working on my first Captivate project.  So far so good (mostly).  I want to interupt a screen capture recording that I now have.  Currently, it captures a pdf screen and an audio narration.  I want to have a button appear at a certain tim

  • MacBook spends too much time loading

    Whether its the internet loading advertisements (videos or inter-actives), or opening larger applications, my macbook always seems to freeze up, either for a few seconds or minutes to unexpectedly quitting the program. Does anyone know if this strict

  • Applying a Time Parameter to a dimension

    I am trying to create a query that pulls back the data based on a Time parameter , [Time].[Time].[Quarter].&[1Qtr 13], etc., but the dimension that I am querying against is a Date field ,  example [Consolidated Agent].[Earliest Active Contract Date].