Sandbox Security Issue (MIDI Not Working In Applet)

Hi all,
I'm having problems getting javax.sound.midi to work in a java applet. It works fine when I run the applet from within JGrasp, but when I try to run the applet from an HTML file there is no sound. From what info I've found, it seems like my problem has to do with the sandbox security so the applet is not being able to access the computer's sound card, but I still haven't found a solution or a work around to that problem (after about 2 weeks worth of searching). The world of applet security is all new territory for me.
I am running the html file off of my hard drive and I have my test program's class file in the same directory. I have tried both firefox and internet explorer web browsers (and also did the "allow blocked content" in internet explorer).
I have no other sound sources playing or paused that would interfere with the web browser playing (it works in JGrasp and immediately after closing JGrasp completely it doesn't work in the web browser).
Any help help in getting this figured out would be greatly appreciated. An example of an open source MIDI Java applet that I can pick apart to figure out what I need to make this work would be fantastic. Thanks in advance!
Here are the codes to my test program and HTML file:
PlayMIDI.html
<html>
<body>
<CENTER><applet code="PlayMIDI.class" width="1000" height="500"></applet></CENTER>
</body>
</html>PlayMIDI.java
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.net.*;
import javax.sound.midi.*;
public class PlayMIDI extends JApplet
    public void init()
        MIDITest play = new MIDITest(0);
        play.playSong(100);
class MIDITest
    private final int C4 = 60;                                        // C4 is the note middle C
    private final int MF = Integer.MAX_VALUE / 2;        // MF stands for mezzo forte -- medium loud
    private int iTimbre;                                                 // midi instrument number
    private Synthesizer synth;                                        // get the java synthesizer
    private MidiChannel [] channels;                              // get an array of channels.  This is the number of notes that can sound simultaneously     
    // Creates a midi synthisizer using the supplied instrument "patch".
    //   instrument numbers can vary from 0 to 127
    public MIDITest(int instrumentNumber)
        iTimbre = instrumentNumber;
        try 
        {   synth = MidiSystem.getSynthesizer();                                   //synth = MidiSystem.getSynthesizer();
            synth.open();                                                                           // open the synthesizer
            synth.loadAllInstruments(synth.getDefaultSoundbank());     // make all instruments available
            channels = synth.getChannels();
            channels[0].programChange(0, iTimbre);                                   // set the instrument for the channel 0
        catch (Exception e)
        {  System.out.println(e);
    public void playSong(int tempo)
        int quarter     = 60000;
        int eigth     = 30000;
        int half          = 120000;
        int whole     = 240000;
        int D4 = C4 + 2;
        int E4 = C4 + 4;
        int G4 = C4 + 7;
        int A4 = C4 + 9;
        int B4 = C4 + 11;
        try
        {   channels[0].noteOn(E4, MF);                         // start the instrument on channel 0 sounding
            channels[0].noteOn(B4, MF);
            channels[0].noteOn(G4, MF);
            channels[0].noteOn(D4, MF);
            Thread.sleep(whole / tempo);                         // sleep causes the program to wait the given number of milliseconds
            channels[0].noteOff(E4, MF);                         // stop the sound on the instrument on channel 0
            channels[0].noteOff(B4, MF);
            channels[0].noteOff(G4, MF);
            channels[0].noteOff(D4, MF);
        catch (Exception e)
        {   System.out.println(e);
}

Hi ejp, thanks for the reply.
I did some searching for applet signing and I found this:
http://www.brendonwilson.com/projects/signed-java/
"+Developers should be warned that signing alone is not enough to enable their Java applets to access resources normally restricted by the Java sandbox. Although signing provides proof of the integrity of the applet and validation of the author’s identity through trust-heirarchies, developers must also make use of the browser-dependent APIs to request permission from the user to perform restricted activities.+"
So am I going to have to do ask permission from each browser in order to get access to the sound card for the MIDI to play or will the MIDI work without that?
Also, I found this tutorial on signing applets. Does this look like a good one?
http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html
Thanks again,
-tkr

Similar Messages

  • Axis bank net secure with webpin not working on ipad2

    Hi,
    Axis bank net secure with webpin not working on ipad2
    Lt me know how to proceed

    Try using their App:
    https://itunes.apple.com/in/app/axis-bank-mobile-application/id517266358?mt=8

  • Security issue - or not? (remote trigger SMC startup)

    Hi,
    During installation of a few zones on a Sol10U2 system today, I noticed that simply running an nmap scan on a freshly installed and booted zone would cause the SMC to start:
    Starting Solaris Management Console server version 2.1.0.
    endpoint created: :898
    Adding instance of solaris_providerpath
    Adding class Solaris_LocalFileSystem
    Adding class Solaris_Directory
    Adding class Solaris_Mount
    Adding class Solaris_UFS
    Adding class Solaris_HSFS
    Adding class Solaris_UFSMount
    Adding class Solaris_HSFSMount
    Adding class Solaris_LocalFSResidesOnExtent
    Compilation succeeded.
    Adding class Solaris_DiskDrive
    Adding class Solaris_DiskPartition
    Adding class Solaris_MediaPresent
    Adding class Solaris_LogicalDisk
    Adding class Solaris_PhysicalMedia
    Adding class Solaris_Disk
    Adding class Solaris_PhysicalPackage
    Adding class Solaris_RealizesExtent
    Adding class Solaris_RealizesDiskPartition
    Adding class Solaris_RealizesDiskDrive
    Adding class Solaris_DiskPartitionBasedOnDisk
    Adding class Solaris_DiskPartitionBasedOnFDisk
    Adding class Solaris_SCSIController
    Adding class Solaris_IDEController
    Adding class Solaris_MPXIOController
    Adding class Solaris_USBSCSIController
    Adding class Solaris_GenericController
    Adding class Solaris_SCSIInterface
    Adding class Solaris_MPXIOInterface
    Adding class Solaris_IDEInterface
    Adding class Solaris_ExtraCapacityGroup
    Adding class Solaris_MPXIOGroup
    Adding class Solaris_ControllerLogicalIdentity
    Adding class Solaris_MPXIOCtrlrLogicalIdentity
    Adding class Solaris_ControllerComponent
    Adding class Solaris_MPXIOComponent
    Adding class Solaris_StorageLibrary
    Compilation succeeded.
    Adding class CIM_ManagedElement
    Adding class CIM_SettingData
    Adding class CIM_Share
    Adding class CIM_FileShare
    Adding class CIM_NFSShare
    Adding class CIM_SharedElement
    Adding class CIM_HostedShare
    Compilation succeeded.
    Adding class Solaris_NFSShare
    Adding class Solaris_NFSShareSecurity
    Adding class Solaris_NFS
    Adding class Solaris_PersistentShare
    Adding class Solaris_MountSetting
    Adding class Solaris_NFSMountSetting
    Adding class Solaris_ShareSetting
    Adding class Solaris_NFSShareSetting
    Adding class Solaris_ShareService
    Adding class Solaris_MountService
    Adding class Solaris_NFSMount
    Adding class Solaris_NFSShareSecurityModes
    Adding class Solaris_NFSShareDefSecurityMode
    Adding class Solaris_HostedShare
    Adding class Solaris_PersistentShareConfiguration
    Adding class Solaris_PersistentShareForSystem
    Adding class Solaris_NFSShareEntry
    Adding class Solaris_SharedElement
    Adding class Solaris_NFSExport
    Adding class Solaris_SharedFileSystem
    Compilation succeeded.
    Adding instance of solaris_providerpath
    Adding instance of solaris_providerpath
    Adding class Solaris_VMStateDatabase
    Adding class Solaris_VMSoftPartition
    Adding class Solaris_VMExtent
    Adding class Solaris_VMStripe
    Adding class Solaris_VMConcat
    Adding class Solaris_VMMirror
    Adding class Solaris_VMRaid5
    Adding class Solaris_VMTrans
    Adding class Solaris_VMHotSparePool
    Adding class Solaris_VMDiskSet
    Adding class Solaris_VMStorageVolume
    Adding class Solaris_VMConcatComponent
    Adding class Solaris_VMDriveInDiskSet
    Adding class Solaris_VMExtentBasedOn
    Adding class Solaris_VMSoftPartComponent
    Adding class Solaris_VMExtentInDiskSet
    Adding class Solaris_VMHostInDiskSet
    Adding class Solaris_VMHotSpareInUse
    Adding class Solaris_VMHotSpares
    Adding class Solaris_VMMirrorSubmirrors
    Adding class Solaris_VMRaid5Component
    Adding class Solaris_VMStatistics
    Adding class Solaris_VMStripeComponent
    Adding class Solaris_VMTransLog
    Adding class Solaris_VMTransMaster
    Adding class Solaris_VMUsesHotSparePool
    Adding class Solaris_VMVolumeBasedOn
    Adding class Solaris_DiskIOPerformanceMonitor
    Compilation succeeded.
    Adding instance of solaris_providerpath
    Adding class Solaris_ActiveUser
    Adding class Solaris_ActiveProject
    Adding class Solaris_ProcessStatisticalInformation
    Adding class Solaris_UserProcessAggregateStatisticalInformation
    Adding class Solaris_ProjectProcessAggregateStatisticalInformation
    Adding class Solaris_ProcessStatistics
    Adding class Solaris_ActiveUserProcessAggregateStatistics
    Adding class Solaris_ActiveProjectProcessAggregateStatistics
    Compilation succeeded.
    Registration setup: 8/8 (Executing SUNWpmgr_reg.sh)
    Registering components: 64/64 (Registering PatchMgrCli.jar)                 er)
    Solaris Management Console server is ready.For interest, the nmap result is:
    toby@deepthought ~ $ nmap -v 192.168.1.122
    Starting Nmap 4.01 ( http://www.insecure.org/nmap/ ) at 2006-08-29 20:39 EDT
    DNS resolution of 1 IPs took 0.23s. Mode: Async [#: 2, OK: 0, NX: 1, DR: 0, SF: 0, TR: 1, CN: 0]
    Initiating Connect() Scan against 192.168.1.122 [1672 ports] at 20:39
    The Connect() Scan took 44.49s to scan 1672 total ports.
    Host 192.168.1.122 appears to be up ... good.
    Interesting ports on 192.168.1.122:
    (The 1662 ports scanned but not shown below are in state: closed)
    PORT     STATE SERVICE
    21/tcp   open  ftp
    22/tcp   open  ssh
    23/tcp   open  telnet
    79/tcp   open  finger
    111/tcp  open  rpcbind
    513/tcp  open  login
    514/tcp  open  shell
    898/tcp  open  sun-manageconsole
    4045/tcp open  lockd
    7100/tcp open  font-service
    Nmap finished: 1 IP address (1 host up) scanned in 44.874 seconds(port 7100 is actually a non-standard VNC server which was carried over from the global zone)
    Of course, this is immediately before running Solaris Security Toolkit (jass) to apply a secure profile.
    Does it matter that this SMC startup can be triggered so easily remotely?

    It just struck me odd that simply port-scanning the
    machine could produce this behaviour, and I wonder if
    it might be a security issue.Probably not directly. Sun has distributed several items in the past that launch via inetd connections (calendar manager and font server were two common ones). Just because it launches doesn't mean it's a security problem. The application itself may require authentication after running.
    Of course the resources required by the process may be non-trivial, and the application may have security issues, but the fact that it launches isn't a direct indication of a problem.
    Darren

  • Security option is not working for PDF Report

    security option is not working for PDF Report , e.g password , bug??

    what version of SQL Developer are you using?

  • Comm.jar not working in Applet but works in Eclipse

    Hello,
    Please help me to read serial port data from Java Applet.
    The below code working well and get data from weighing machine when we run in eclipse(Run Applet). But it now working when we use class file in Applet.
    I think its security issue, but i still could not understand what we need to do.
    I put the JOptionPane.showDialog and found that the code is crashing in line CommPortIdentifier.getPortIdentifiers(); (Not understood why try catch not working.)
    I am using in Windows 7 environment.
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.event.*;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Enumeration;
    import java.util.logging.Logger;
    import javax.comm.*;
    import javax.swing.*;
    public class SimpleApplet extends JApplet {
    public void init() {
    JButton button = new JButton("Click me!");
    button.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {                 
         JOptionPane.showMessageDialog(SimpleApplet.this, "hello");
    JOptionPane.showMessageDialog(SimpleApplet.this, Getdata());
    add(button, BorderLayout.CENTER);
    setBackground(Color.GRAY);
    public String Getdata()
         try
              String drivername = "com.sun.comm.Win32Driver";
    try
    CommDriver driver = (CommDriver) Class.forName(drivername).newInstance();
    driver.initialize();
    catch (Exception e) { //just do nothing, it doesn't really matter
         Enumeration portList=null;
    CommPortIdentifier portId;
    SerialPort serialPort;
    OutputStream outputStream;
    try
         portList = CommPortIdentifier.getPortIdentifiers();
    }catch(Exception ex)
         JOptionPane.showMessageDialog(SimpleApplet.this, "erorr:" + ex.getStackTrace().toString());
    JOptionPane.showMessageDialog(SimpleApplet.this, "get port lsit");
              while(portList.hasMoreElements())
                   portId = (CommPortIdentifier) portList.nextElement();
                   if(portId.getPortType()== CommPortIdentifier.PORT_SERIAL)
                        if(portId.getName().equals("COM1"))
                             try
                                  serialPort = (SerialPort) portId.open("WeightMachine",200);                              
                                  serialPort.setSerialPortParams(1200, SerialPort.DATABITS_8, SerialPort.STOPBITS_1,SerialPort.PARITY_NONE);
                                  outputStream = serialPort.getOutputStream();
                                  InputStream mInputFromPort = serialPort.getInputStream();
                                  outputStream.write("W".getBytes());
                                  outputStream.flush();
                                  Thread.sleep(500);
                                  byte mBytesIn [] = new byte[20];
                                  mInputFromPort.read(mBytesIn);
                                  //mInputFromPort.read(mBytesIn);
                                  String value = new String(mBytesIn);
                                  mInputFromPort.close();
                                  serialPort.close();
                                  return value.replace("+00", "").replace(" Kg", "");
                             }catch(Exception ex)
                                  return ex.getMessage();
              }catch(Exception ex)
                   JOptionPane.showMessageDialog(SimpleApplet.this, "erorr last:" + ex.getStackTrace().toString());
              return "Not found";
    Thanks in advance.
    Avinash

    959817 wrote:EJP wrote:959817 wrote:
    it now working when we use class file in Applet.Define 'not working'.But when i run applet from browser from same machine its not working.That's not an answer. That's just a vague and pointless restatement of the original vague and pointless statement that I asked you to clarify.
    When you take your car to a mechanic, do you just tell him it's 'not working'?

  • IPad Mini 2 security feature is not working as claimed!

    I recently bought my iPad Mini2 (Retina Display – 64GB with T-Mobile service; Serial #DLXLPCE1FLMP) and less than 2 weeks of usage - it has been stolen on December 3, 2013 at airport.  I put my iPad Mini2 on “airplane” mode (no internet service) to save the life of the battery while on the plane and never turn it back on when landed...  I had my iPad Mini2 in my purse when landed in ATL… I picked up my luggage – walking and standing in the crowds…  When I got home, that’s when I realized my iPad Mini2 was no longer in the purse. 
    The next thing I tried to do was “Find My iPhone” option from my other Apple device (iPad2) to locate the missing iPad Mini2 but it’s showing as “offline”.  I then issued “Play Sound”, “Lost Mode” and “Erase iPad” from the “Find My iPhone” feature (see screenshot).  Since the device was offline, the “Erase iPad” function will not work until it’s online.  It was updated with the iOS 7
    I’ve been calling AppleCare Support and at the Apple Store (in person) for help of how ensure that my credential on that iPad Mini2 will not be stolen as well.  They ensured me that since I issued the “Lost Mode” and “Erase iPad”, no one can access to the device to turn off the “Airplane” mode in order to get the internet… not even through my 4-digit security code.  They were wrong! Somehow my device was security breach and that my iPad Mini2 was ERASED at 2:33 AM (Eastern Time) – meaning that whoever has my device had it disabled the “airplane” mode and had internet signal in order for the data to be erased (see screenshot).  I spoke to multiple representatives from Apple and they said that it shouldn’t happen…  I was on the phone for hours and no resolution as far as security goes.
    I’ve tried my best to recover the item but it looks like it belongs into a wrong hand.  I want Apple to replace my newly purchased  iPad Mini2 (Retina Display – 64GB with T-Mobile service) because the Security is not working as claimed…
    Very unhappy customer!!!

    Good luck with that.

  • USB MIDI not working in Windows 7 Pro 64-bit

    The problem is that even though my devices are recognized in Control Panel/ Sound and in Device Manager, no MIDI data actually flows and I cannot sync my keyboard to the Yamaha software that edits it.  The error message in the Yamaha software reads
    “The following MIDI ports can not be opened at this time”.   At first, MIDI was working and I could sync up, but after about a week, right around the time I uninstalled and re-installed a MS Lifecam, it failed and has not worked since.
    I have been working directly with Yamaha tech support on the issue for some time. I have a Yamaha SX70 XS keyboard, which is recognized by Windows as a connected USB device. It is self-powered, not powered by USB. I am using the Yamaha USB-MIDI driver version
    3.1.2 for Windows 7 64-bit (the latest driver). And the latest versions of all their editing software for Win7 64-bit. They assure me that those work for other users of Win7 64-bit. In my case though, everything shows up in Windows, but MIDI doesn’t actually
    work. And I cannot sync to the keyboard due to the above error message.
    Yamaha tells me that their USB-MIDI driver is installing fine on my machine, except that it’s missing a windows driver at the bottom of the driver stack. (You can see this in Device Manager, Properties/Driver tab, then Driver Details. The missing driver
    is ksthunk.sys, which I think handles kernel streaming. Sounds like that would relate to MIDI data. They have never heard of this driver not showing up there, and they cannot reproduce the problem. ksthunk.sys is on my machine in c:\windows\system32\drivers\
    and in the registry the image path is \SystemRoot\system32\drivers\ksthunk.sys
    All devices are “working properly” in Windows Device Manager, despite that missing driver. Yamaha MIDI Driver is shown in Control Panel/Sound, and it can be worked with there (opened, closed, configured, etc.).  I have also tried three different USB
    cables (but those shouldn't be an issue since the keyboard is showing up in Windows).
    I was also advised by Yamaha to edit registry key  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32  and remove all midi, midi1, midi2, etc entries, then uninstall and reinstall all drivers. Which I did, but it didn't help.
    So far, no amount of re-installation, event viewing, uninstalling devices, numerous reboots,etc has fixed it. On this machine, that driver just doesn’t hook up to the Yamaha MIDI driver and show up in the stack.
    So it looks like it may be a Windows 7 config problem on my machine, and I'm hoping someone here can give me some advice on how to fix it. The Microsoft forums contain a fair number of users reporting similar problems, some are audio and some are webcam
    related. I've followed those threads, and done several of the suggestions, but haven't found a solution to this one.
    This is a Dell XPS 8300 Windows 7 64-bit PC with all the latest updates, only about six weeks old. I've been struggling with the MIDI problem for most of that time.  I'm an IT professional (network and systems admin), so you can be fairly technical
    in your response.
    Any suggestions will be welcome. Thanks in advance.

    I am so glad I found keyman7's description, since I have exactly the same problem.
    The problem is not related to MIDI output! I have it with a pure USB-MIDI-input device (keyboard), whichs produces "unknown externeal error" every time I try to select it as input. The same thing occurs with a USB-MIDI-Cable.
    I compared the driver details from my system (Dell T1500 windows 7 pro 64 bit) with those of another windows 7 pro 64 bit. On that other system the device works like a charm (so it is not the hardware, either).
    On the other system I find ksthunk.sys in addition to the modules that are listed on my system as well (beeing \windows\system32\drivers\drmk.sys, ..\prtcls.sys, ..\USBAUDIO.sys and \windows\system32\SysFx.dll, ..\WMALFXGFXDSP.dll).
    Can it be some other USB driver is interfering with this driver stack? I have no idea how to figure out which one it could be. Or, it has been suggested in other threads with somewhat similar looking symptoms, ksthunk.sys has been removed as  UpperFilters
    entry?
    Help - please!

  • Client Security Password manager not working

    Hi All,
    Have a T500 (model 2081CTO) running Win 7 Prof, with fingerprint reader.  Had installed and had working Enhanced Client Security, was web aspect of capturing / prompting userids and passwords just fine.
    Needed to reset IE8 to default.  That stopped Client Security Password web aspect.
    Uninstalled then re-installed & setup Enhanced Client Security.  Had backed up / reinput  password list.
    ***  Web aspect of capturing / prompting userids and passwords is not working ***
    Not being prompted to save a userid / password
    A known userid / password is not being entered into what should be  a known site.
    Doesn't even seem as if enhanced client security is running - no icon in system tray.  Yet Client Security Solution shows it enabled.
    What / How do I get enhanced client security to again start, prompt to save userid/password and to reinput for a known site?
    Obviously not keen to wipe machine and start again...
    Am also really hissed that I cannot ring Lenovo Support and actually talk to someone about this!
    Thanks for any meaningful suggestions and assistance.
    Les
    Solved!
    Go to Solution.

    open password manager in the set preferences make sure IE box is checked in IE 8 click on the tools option the lenovo password manager should be there & in the manage add ons make sure it is enabled
    Thinkpad R61 7733-1GU
    Thinkpad X61T 7762-54U
    Thinkpad X60T 6363-4GU
    Did a member help you today? Thank them with a Kudo!
    If a post answers your question, please mark it as an "Accepted Solution"!
    Regards,
    GMAC

  • ThinkPad USB Keyboard with TrackPoint (55Y9053) driver issue (keys not working)

    Hello!
    I bought this external keyboard yesterday for my Dell desktop running windows 7 (professional)  because I liked the thinkpad keyboard in my thinkpad t400. After plugging in to my desktop and installing the drivers that came in the CD, I noticed some keys (u, o, m, enter(return), l) were not working, i.e., nothing get displayed when I press those keys . When I tried installing it on thinkpad t400 running Windows 7 professional, the same non-working keys were displaying numbers instead of alphabet values.
    Please note the keyboard is not 55Y9003 but the newer version 55Y9053. Also, note the trackpoint worked well including scrolling and all other keys were working. Interestingly, when I plugged this keyboard on Ubuntu machine (desktop and laptop), everything worked well without even installing any drivers.
    I initially thought it was a hardware problem and got replacement from Amazon. Both the keyboards exhibit the same problem. Given the fact it works nicely on Ubuntu, I think this is a driver issue. I tried installing drivers from thinkpad site including versions 1.6 and 1.7.
    I would appreciate if someone can help with the right drivers.
    Thank you,
    Vinai
    Solved!
    Go to Solution.

    How does the keyboard compare to the one on the T400? I'm considering purchasing one for my desktop because I'm addicted to the TrackPoint.
    When asking for help, post your question in the forum. Remember to include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help others with the same question in the future.
    My TPs: Twist 2HU: i5-3317U Win 8 Pro, 4GB RAM 250GB Samsung 840 | T420 4177CTO: i5-2520M, HD+, Win 7 Pro x64, 8GB RAM, Optimus, 160GB Intel 320 SSD, Intel 6300 WiFi, BT 3.0 | T400 2764CTO: P8700, WXGA, Win 7 Ult x64, AMD 3470, 8GB RAM, 64GB Samsung SSD, BT, Intel 5300 WiFi | A20m 14.1" PIII 500 (retired). Monitors: 2x Dell U2211h IPS 100% sRGB calibrated w/ Spyder3.

  • Keyboard Issues keys not working

    Help, I am rather inept with my Mac...the other day .my wireless keyboard teh home row would not work....changed battereies, shut down restart etc and still no luck. Later that night tried again and yeah it worked. Now the key to the left of the x, does not work, (as I cant type the letter this is the only way i can explain it!) could someone try to help me? I have tried checking keyboard options but cant see anything that would have caused it to become unusable?

    I have the same issue! Three days ago, the keys that stopped working are:
    letter T, letter Z, left Shift, Caps lock, left Ctrl and Backspace.
    Can anyone help?
    My laptop is: lenovo Yoga 2 13 (no pro)

  • Post install issue: network not working

    Hi. I've installed arch and after install just issued full system upgrade (pacman -Syu). But after reboot, my network is not working anymore  (can't ping even my gateway). In my rc.conf i have line
    interface=eth0
    so i am using dhcp. But as i said, network was working before full system upgrade (packages were downloaded). I think something must be wrong with module b44. This is output of dmesg:
    b44 ssb1:0: eth0: Link is up at 100 Mbps, full duplex
    b44 ssb1:0: eth0: Flow control is off for for TX and off for RX
    b44 ssb1:0: eth0: powering down PHY
    b44 ssb1:0: eth0: Link is down
    b44 ssb1:0: eth0: powering down PHY
    b44 ssb1:0: eth0: Link is up at 100 Mbps, full duplex
    b44 ssb1:0: eth0: Flow control is off for for TX and off for RX
    b44 ssb1:0: eth0: powering down PHY
    b44 ssb1:0: eth0: Link is down
    b44 ssb1:0: eth0: powering down PHY
    This keeps repeating every few seconds. I tried manually restart network via /etc/rc.d/network restart, but it's still not working.

    The network restarts without error?
    Weird, do you see anything in pacman.log for that upgrade when processing the hooks?
    Try unloading (modprobe -r b44) and loading (modprobe -i -v b44)  the driver and look in the logs again then perhaps.

  • Midi not working at all.

    Hi I have a RME hammerfall multiface soundcard plugged into a G5 dual 2.3
    I load up different AU instruments in logic 7.1 and no sound. I look at the transport panel and no midi notes are registering.
    I thought maybe it was logic, but then I loaded up different native instrument standalones which used to work and they also do not work.
    I get audio to work fine... just midi suddenly has stopped working
    Any idea how to fix it?, any preferences that I need to trash etc... i'm totally lost as to what to do....
    thanks heaps.
    Prahlad.

    If oyur MIDI interface shows activity when you send data check your audio Midi setup. Check if your interface has a thru or bypass mode. Verify it gets as far as Audio MIDI setup or not.

  • My security answers are not working

    i am trying to authorize a new computer for my itunes - of course in a hurry and my security answers are not working

    Hi suejom,
    Did you set up a Rescue email when you set up the Security Questions? If so, go into Manage AppleID, Password and Security, and click on the "reset info security email" at the bottom.
    If you did not, before calling Apple Support (which you will have to do if you can't get the answers to go), go back and make sure that the security questions being asked are the ones you think they are (I made that mistake once, giving the answer to my first car when the question was what was my first concert.....)
    Also, make sure you put in the entire answer - case isn't relevant, but all of the words are....
    If all else fails, you have no choice but to contact Apple Support!
    Good Luck,
    GB

  • TPC Issues - Transfers Not Working!!

    Alright so I just used a program formerly known as System Optimizer X now know as Socks. It has an internet optimization feature and I used it to change my send and receive buffer size to 66048 and 112064 respectively. The system defaults are 32768 for both. Since changing it I have had problems with my internet and my torrent transfers and other downloads are not working at all or working very poorly. I was wondering if there was a terminal command or other solution to force a return to the system defaults since Socks seems to be unable to return me to my original state. Thanks for your help.

    Ooops... and by TPC I mean TCP of course... idiot.

  • ActionPerformed method not working when applet is loaded in browser window.

    Hey there guys. I need urgent help from anybody who has experience in deploying websites whose code is in java.
    I am having two problems as mentioned below...
    first, I have made a simple login screen using java swing and JApplet. there is a single button to login. the action performed for this button accesses a private method to check the username and password which are there in atext file. the applet is working perfectly in appletviewer but when i load the applet in a Internet Explorer window using HTML's Applet tag, the button is giving no response at all even when i enter the correct username and password.
    I guess it is either not calling the private function that is checking the username and password from the tes=xt file or it can not access the file. Please help as soon as possible as this is related to my college project.
    I am attaching the code herewith. Suggestions to improve the coding are also welcome.
    the second problem is that while writing my second program for generating a form which registers a user the html is not at all loading the applet into the browser and also if im trying to access a file to write all the details into the console is showing numerous amount of error after i press the button which i can't not understand. the only thing i can understand is that it is related to file access permissions. If anybody could put some light on the working of worker threads and thread safe activities of SwingUtilities.invokeandWait method it would be really appreciable.
    import java.io.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.plaf.*;
    <applet code = "UserLogin" width = 300 height = 150>
    </applet>
    public class UserLogin extends JApplet implements ActionListener, KeyListener {
         private JLabel lTitle;
         private JLabel lUsername, lPassword;
         private JTextField tUsername;
         private JPasswordField tPassword;
         private JButton bLogin;
         private JLabel lLinkRegister, lLinkForgot;
         private JLabel lEmpty = new JLabel(" ", JLabel.CENTER);
         private JPanel panel1, panel2;
         public void init() {
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                   SwingUtilities.invokeAndWait(new Runnable() {
                        public void run() {
                             LoginGUI();
              catch(Exception e) {
                   e.printStackTrace();
         public void start() {
              setVisible(true);
         public void stop() {
              setVisible(false);
         private void LoginGUI() {
              super.setSize(300, 150);
              super.setBackground(Color.white);
              lTitle = new JLabel("<HTML><BODY><FONT FACE = \"COURIER NEW\" SIZE = 6 COLOR = BLUE>Login</FONT></BODY></HTML>", JLabel.CENTER);
              lUsername = new JLabel("Username : ", JLabel.CENTER);
              lPassword = new JLabel("Password : ", JLabel.CENTER);
              tUsername = new JTextField(15);
              tPassword = new JPasswordField(15);
              bLogin = new JButton("LOGIN");
    //          bLogin.setEnabled(false);
              bLogin.addActionListener(this);
              bLogin.addKeyListener(this);
              panel2 = new JPanel();
              GridBagLayout gbag = new GridBagLayout();
              GridBagConstraints gbc = new GridBagConstraints();
              panel2.setLayout(gbag);
              panel2.addKeyListener(this);
              gbc.anchor = GridBagConstraints.CENTER;
              panel2.setMinimumSize(new Dimension(300, 200));
              panel2.setMaximumSize(panel2.getMinimumSize());
              panel2.setPreferredSize(panel2.getMinimumSize());
              gbc.gridx = 1;
              gbc.gridy = 1;
              gbag.setConstraints(lUsername,gbc);
              panel2.add(lUsername);
              gbc.gridx = 2;
              gbc.gridy = 1;
              gbag.setConstraints(tUsername,gbc);
              panel2.add(tUsername);
              gbc.gridx = 1;
              gbc.gridy = 2;
              gbag.setConstraints(lPassword,gbc);
              panel2.add(lPassword);
              gbc.gridx = 2;
              gbc.gridy = 2;
              gbag.setConstraints(tPassword,gbc);
              panel2.add(tPassword);
              gbc.gridx = 2;
              gbc.gridy = 3;
              gbag.setConstraints(lEmpty,gbc);
              panel2.add(lEmpty);
              gbc.gridx = 2;
              gbc.gridy = 4;
              gbag.setConstraints(bLogin,gbc);
              panel2.add(bLogin);
              panel1 = new JPanel(new BorderLayout());
              panel1.add(lTitle, BorderLayout.NORTH);
              panel1.add(panel2, BorderLayout.CENTER);
              add(panel1);
              setVisible(true);
         public void keyReleased(KeyEvent ke) {}
         public void keyTyped(KeyEvent ke) {}
         public void keyPressed(KeyEvent ke) {
              if(ke.getKeyCode() == KeyEvent.VK_ENTER){
                   String username = tUsername.getText();
                   String password = new String(tPassword.getPassword());
                   if(username.length() == 0 || password.length() == 0) {
                        JOptionPane.showMessageDialog(new JFrame(),"You must enter a username and password to login", "Error", JOptionPane.ERROR_MESSAGE);
                   else {
                        boolean flag = checkUsernamePassword(username, password);
                        if(flag)
                             JOptionPane.showMessageDialog(new JFrame(),"Username and Password Accepted", "Access Granted", JOptionPane.INFORMATION_MESSAGE);
                        else
                             JOptionPane.showMessageDialog(new JFrame(),"Username or password Incorrect", "Access Denied", JOptionPane.INFORMATION_MESSAGE);
         public void actionPerformed(ActionEvent ae) {
              String gotCommand = ae.getActionCommand();
              if(gotCommand.equals("LOGIN")) {
                   String username = tUsername.getText();
                   String password = new String(tPassword.getPassword());
                   if(username.length() == 0 || password.length() == 0) {
                        JOptionPane.showMessageDialog(new JFrame(),"You must enter a username and password to login", "Error", JOptionPane.ERROR_MESSAGE);
                   else {
                        boolean flag = checkUsernamePassword(username, password);
                        if(flag)
                             JOptionPane.showMessageDialog(new JFrame(),"Username and Password Accepted", "Access Granted", JOptionPane.INFORMATION_MESSAGE);
                        else
                             JOptionPane.showMessageDialog(new JFrame(),"Username or password Incorrect", "Access Denied", JOptionPane.INFORMATION_MESSAGE);
         private boolean checkUsernamePassword(String username, String password) {
              String user = null, pswd = null;
              try {
                   FileInputStream fin = new FileInputStream("@data\\userpass.txt");
                   DataInputStream din = new DataInputStream(fin);
                   BufferedReader brin = new BufferedReader(new InputStreamReader(din));
                   user = (String) brin.readLine();
                   pswd = (String) brin.readLine();
              catch(IOException ioe) {
                   ioe.printStackTrace();
              if(username.equals(user) && password.equals(pswd))
                   return true;
              else
                   return false;
    }PLEASE HELP ME GUYS......

    RockAsh wrote:
    Hey Andrew, first of all sorry for that shout, it was un-intentional as i am new to posting topics on forums and didn't new that this kind of writing is meant as shouting. Cool.
    Secondly thank you for taking interest in my concern.No worries.
    Thirdly, as i mentioned before, I am reading i file for checking of username and password. the file is named as "userpass.txt" and is saved in the directory named "@data" which is kept in the same directory in which my class file resides.OK - server-side. That makes some sense, and makes things easier. The problem with your current code is that the applet will be looking for that directory on the end user's local file system. Of course the file does not exist there, so the applet will fail unless the the end user is using the same machine as the server is coming from.
    To get access to a resource on the server - the place the applet lives - requires an URL. In applets, URLs are relatively easy to form. It might be something along the lines of
    URL urlToPswrd = new URL(getCodeBase(), "@data/userpass.txt");
    InputStream is = urlToPswrd.openStream();
    DataInputStream din = new DataInputStream(is);
    So the problem is that it is reading the file and showing the specific output dialog box when i run it through appletviewer.. Huhh. What version of the SDK are you using? More recent applet viewers should report security exceptions if the File exists.
    ..but the same is not happening when i launch the applet in my browser window using the code as written belowHave you discovered how to open the Java Console in the browser yet? It is important.
    Also the answer to your second question
    Also, the entire approach to storing/restoring the password is potentially wrong. For instance, where is it supposed to be stored, on the server, or on the client?is that, as of now it is just my college project so all the data files and the username and password wiles will be stored on my laptop only i.e. on the client only. no server involved.OK, but understand that an applet ultimately does not make much sense unless deployed through a server. And the entire server/client distinction becomes very important, since that code would be searching for a non-existent file on the computer of the end user.

Maybe you are looking for

  • Monitors with Gradient Problems?

    Hi All, Further to my recent post "monitor screen display terrible!" Finding a monitor without spending a lot with excellent picture quality is proving differcult! I have tried a Philips 22" monitor Model 220CW9FB and now a BENQ T900HD 18.5 WS monito

  • HT204088 I have reset mt iPad3 and lost my iBooks, books it keeps coming up with error how can I get them back without paying again

    Help anyone please

  • Oracle forms 9i

    Hi Guys, i m getting difficulty in running forms9i demos as even though i have installed all the required components like forms 9iAS services. But still when i run 9iforms demo in explorer with servlet it doesnt show the forms.

  • Can't scan with new 1050

    I have been scanning with Adobe Acrobat Professional 8 and a Lexmark all in one printer. The printer's printhead became blocked, and cost of fixing was too much, so I bought this HP printer. Installed it, and made it default. It prints and copies fin

  • CFDump not working with CFXML

    I am using CF7 on win2k3 connected to a MS SQL 2005 datasource. I created a query. Then dynamically dumped the data into a table. This works great. Below it I wanted to make sure the XML dump structure was the same. However, I am getting the followin