Problem with DSP

il havez a cisco as5300 i use it for voip after 5 or 6 hours i must reboot cisco because i observe a large difference between DSP and DS0
ALG01#show call resource voice stats
Resource Monitor - Dial-up Resource Statistics Information:
DSP Statistics:
Utilization: 36 percent
Total channels: 90
Inuse channels: 63
Disabled channels: 0
Pending channels: 0
Free channels: 27
DS0 Statistics:
Utilization: 35 percent
Total channels: 124
Addressable channels: 60
Inuse channels: 21
Disabled channels: 0
Free channels: 39
can any one explaine me the cause of this problem?
think you

Hi!
I have the same problem with one of my 5300 boxes. I think this is IOS related issue, because all other 5300 boxes don't have this problem. This one has c5300-jk8s-mz.122-5.bin
IOS upgrade would probably help...
If you find out something more, I'll be glad to know!
Regards,
Nikola

Similar Messages

  • Problem with dsp:setvalue bean="FH.method" value="Submit"/ !

    Hi ATG'ers,
    instead of this (which WORKS):
    <dsp:setvalue bean="ShoppingCartModifier.moveToConfirmationSuccessURL" value="../checkout/checkoutReviewPlaceOrder.jsp"/>
    <dsp:setvalue bean="ShoppingCartModifier.moveToConfirmationErrorURL" value="../checkout/checkoutPayment.jsp"/>
    <dsp:form name="moveToConfirmationForm" action="testWebPaymentConfirmation_EUR.jsp" method="post">
         <dsp:input bean="ShoppingCartModifier.moveToConfirmationSuccessURL" type="hidden"/>                          
         <dsp:input bean="ShoppingCartModifier.moveToConfirmationErrorURL" type="hidden"/>
         <dsp:input bean="ShoppingCartModifier.moveToConfirmation" priority="-100" value="Submit" type="hidden"/>
    </dsp:form>
    <script type="text/javascript">
         document.moveToConfirmationForm.submit();                                   
    </script>
    I want to use this (because I've been told I can't use javascript to submit this form) :
    <dsp:setvalue bean="ShoppingCartModifier.moveToConfirmationSuccessURL" value="../checkout/checkoutReviewPlaceOrder.jsp"/>
    <dsp:setvalue bean="ShoppingCartModifier.moveToConfirmationErrorURL" value="../checkout/checkoutPayment.jsp"/>
    <dsp:setvalue bean="ShoppingCartModifier.moveToConfirmation" value="Submit"/>
    But when I do it, it goes into the handle (pre and post) as expected but it DOES NOT redirect to "../checkout/checkoutReviewPlaceOrder.jsp", the moveToConfirmationSuccessURL.
    It just seems to hang and not redirect there.
    Can someone tell me why or if this is even actually possible?
    Regards,
    Dan
    PS please note there will be other values too but i didn't include these just to make it simple to read but I hope you get the idea :)
    Edited by: 881389 on 24-Aug-2011 11:35

    <dsp:form name="moveToConfirmationForm" action="testWebPaymentConfirmation_EUR.jsp" method="post">
    <dsp:input bean="ShoppingCartModifier.moveToConfirmationSuccessURL" value="../checkout/checkoutReviewPlaceOrder.jsp" type="hidden"/>
    <dsp:input bean="ShoppingCartModifier.moveToConfirmationErrorURL" value="../checkout/checkoutPayment.jsp" type="hidden"/>
    <dsp:input bean="ShoppingCartModifier.moveToConfirmation" value="" type="hidden"/>
    a href="#" class="button" onclick="javascript:moveToConfirmation();">
    Move to Confirmation
    </a
    </dsp:form>
    <script type="text/javascript">
    function moveToConfirmation() {
    window.document.addToCartForm["/atg/commerce/order/purchase/ShoppingCartModifier.moveToConfirmation"].value="submit";
    document.moveToConfirmationForm.submit();
    </script>
    Can you try this, use your movetoconfirmation button instead of anchor tag.
    Thanks,
    Suresh
    Edited by: Suresh Repalle on Aug 25, 2011 12:09 PM
    Edited by: Suresh Repalle on Aug 25, 2011 12:12 PM
    Edited by: Suresh Repalle on Aug 25, 2011 12:15 PM

  • [SOLVED] Problem with MPD and ALSA

    Hello, I'm having problems with mpd using alsa output.
    My alsa system works, I can play mp3 using mplayer -ao alsa, and flash plugin plays sound, my user (and also mpd user)is in the audio group.
    But then mpd can't open the alsa device.
    If I tell mpd to autodetect audio, it can't find anything:
    (Running as root to see output, if using /etc/rc.d/mpd start, it just fails)
    output: No "audio_output" defined in config file
    output: Attempt to detect audio output device
    output: Attempting to detect a alsa audio device
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
    alsa: Error opening default ALSA device: No such file or directory
    output: Attempting to detect a oss audio device
    oss: Error opening OSS device "/dev/dsp": No such file or directory
    oss: Error opening OSS device "/dev/sound/dsp": No such file or directory
    output: Attempting to detect a pulse audio device
    mpd: src/output/pulse_output_plugin.c:400: pulse_output_wait_connection: Assertion `po->mainloop != ((void *)0)' failed.
    and if I set up a basic alsa config...
    audio_output {
    type "alsa"
    name "HDA-Intel"
    It starts, but then playing anything:
    % mpc play
    Caspian - La Cerva
    [paused] #2/10 0:00/4:59 (0%)
    volume: n/a repeat: off random: off single: off consume: off
    ERROR: problems opening audio device
    mpc.log output:
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
    Sep 22 10:08 : output: Failed to open "HDA-Intel" [alsa]: Failed to open ALSA device "default": No such file or directory
    I tried with different device and mixer settings and the error is always the same. It can't open alsa device.
    Any Ideas?
    Thank you.
    Last edited by xzakox (2011-09-22 20:04:33)

    Check that mpd is really being run as the mpd user, and that id lists audio for the mpd user. Also post your whole mpd.conf and the output from amixer when running as the user you run mpd as.
    Last edited by Mr.Elendig (2011-09-22 11:43:35)

  • Problems with a new IP phone 7906 after factory reset

    Hi Guys
    I am currently having problems with my new IP phone 7906 after doing factory reset and here is a video of it:
    http://www.youtube.com/watch?v=vvCLtwIAwVw
    I used this command I found on the net:
    Hold down
    while plugging in the phone and keep holding it until the message waiting indicator (red light) starts blinking.  Then
    release # and type 123456789*0# in sequence.
    I was trying to switch my phone to sip and it also dont want to take tftp setup either.

    Tim,
    Found this on the net
    http://www.cisco.com/en/US/ts/fn/620/fn62949.html
    Might be woth giving it a go
    6.Pull power on the phone (even if power is PoE).
    7.Hold down the # key on the phone.
    8.Continue holding down the # key and re-apply power.
    9.While still holding the # key wait for the Message Waiting Indicator (MWI) light on the handset to start flashing.
    10.Once the MWI light is flashing, release the # key and enter the following sequence exactly on the keypad:
    3491672850*#
    Once this sequence has been entered on the IP Phone, if all the network criteria above have been met, it should begin its recovery process. This process can take up to 15 minutes to finish. The phone may appear to be doing nothing during this time. However, if the phone does not recover after 20 minutes then it is possible that the recovery is stuck. In this case, re-examine your network and verify that steps 1-4 are in place, then re-issue the factory reset sequence.
    * Note: The factory reset sequence is a way for a phone to clear flash and still upload to a valid firmware image. This is facilitated by the termxx.default.loads file, but requires that the image files listed in the termxx.default.loads file are available in TFTP for the phone to download. Open the termxx.default.loads file in any text editor. This loads file is essentially just a packing list showing all the OS and application files the phone needs to function. The files include a cnu, cvm, dsp, app and jar files. Please make sure that these files as listed in the termxx.default.loads file are in TFTP. ("xx" will be either "06" for the CP-7906G model, or "11" for the CP-7911G model.)
    Additional Diagnostic Steps:
    - Try a hard-coded IP address as a test to see if this resolves the upgrade failures. If it does, and the number of failing IP Phones is relatively few, this procedure may be the most expedient. After the IP Phone upgrades successfully, reconfigure the IP Phone to use DHCP.
    - Try putting the phone on a hub or a different switch and see if this helps change the startup timing enough so that the upgrade completes successfully.
    Regards
    Alex

  • Java/OpenJDK problem with OSS/osspd/ALSA/pulseaudio [SOLVED]

    I've got problems with sound output of java programs, which usually try to hog /dev/dsp, using pulseaudio and openjdk 7.
    Some rare java apps' sound methods surprisingly do work. Others (which the majority of java programs seem to use) do not. In Sun Java I could make those work by using 'padsp', however this method apparently fails on Archlinux with both latest Oracle Java (formerly worked on Ubuntu w/ Sun Java 6) and with OpenJDK too.
    So I tried 'osspd' (package is called 'ossp') and it shows the root process "/usr/sbin/osspd --dsp-slave=/usr/sbin/ossp-padsp" been started, but the java applications will still not provide sound which I find pretty odd. I tried adding 'soundcore.preclaim_oss=0' to the 'kernel..' line in my grub's menu.lst, but that didn't help either.
    Last edited by Jindur (2012-05-20 02:59:20)

    It's been quite a while, but I finally found a solution (read: big ugly hack).
    Someone literally created a biguglyhack and posted it here:
    http://lifein19x19.com/forum/viewtopic. … 243#p98243
    (downloadable file there: javadummymixer_biguglyhack.zip [12.97 KiB] -> rename it from .zip to .jar and move it into your java's lib/ext folder -> profit!)
    I applied it to OpenJDK 6 (should be same for 7 though) and all my java sound works flawlessly now, with pulseaudio, without any need for padsp stuff or osspd or whatever.
    My sound.properties file reads:
    javax.sound.sampled.Clip=com.sun.media.sound.DirectAudioDeviceProvider
    javax.sound.sampled.Port=com.sun.media.sound.PortMixerProvider
    javax.sound.sampled.SourceDataLine=com.sun.media.sound.DirectAudioDeviceProvider
    javax.sound.sampled.TargetDataLine=com.sun.media.sound.DirectAudioDeviceProvider
    but actually I'm not sure whether that even matters at all.
    (Side note: The linked thread also mentions a "-D.sun.." command-line parameter that supposedly forces java to avoid disfunctional audio methods. The above biguglyhack however worked for me without any need of applying that command-line parameter.)
    Last edited by Jindur (2012-05-20 02:58:05)

  • Problems with Solaris 11 11/11

    Hi,
    I need your help because I have problems with Solaris 11 11/11 installed in a Dell Latitude E4310.
    Here, there are the problems:
    1- No it power off with shutdown or init 5 or init 0 only work well the reboot.
    2- It can not connect to the wifi with wpa, no receive ip by dhcp, the driver of the card is "iwp"
    Thanks.
    Jorge
    Edited by: jdangelo on Nov 16, 2011 1:49 PM
    Edited by: jdangelo on Nov 17, 2011 2:51 PM

    Here is the info of my laptop;
    Manufacture name:Dell Inc.
    Manufacture model:Latitude E4310
    64 Bit:True
    OS version:SunOS solaris 5.11 11.0 i86pc i386 i86pc
    CPU Type:Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz
    CPU Number:1
    Number Of Cores Per Processor:2
    Number Of Threads Per Processor:4
    Bios/Firmware Maker:Dell Inc. Version:A05 Release Date:11/20/2010
    prtconf -pv:
    System Configuration: Oracle Corporation i86pc
    Memory size: 3958 Megabytes
    System Peripherals (PROM Nodes):
    Node 0x000001
    bios-boot-device: '80'
    stdout: 00000000
    name: 'i86pc'
    Node 0x000002
    existing: 00c21000.00000000.02bc6001.00000000
    name: 'ramdisk'
    Node 0x000003
    acpi-namespace: '\_SB_.PCI0'
    compatible: 'pciex_root_complex'
    device_type: 'pciex'
    reg: 00000000.00000000.00000000.00000000.00000000
    #size-cells: 00000002
    #address-cells: 00000003
    name: 'pci'
    Node 0x000004
    reg: 00000000.00000000.00000000.00000000.00000000
    compatible: 'pci8086,44.1028.410.2' + 'pci8086,44.1028.410' + 'pci1028,410' + 'pci8086,44.2' + 'pci8086,44' + 'pciclass,060000' + 'pciclass,0600'
    model: 'Host bridge'
    power-consumption: 00000001.00000001
    fast-back-to-back:
    devsel-speed: 00000000
    max-latency: 00000000
    min-grant: 00000000
    subsystem-vendor-id: 00001028
    subsystem-id: 00000410
    unit-address: '0'
    class-code: 00060000
    revision-id: 00000002
    vendor-id: 00008086
    device-id: 00000044
    name: 'pci1028,410'
    Node 0x000005
    acpi-namespace: '\_SB_.PCI0.VID_'
    assigned-addresses: 83001010.00000000.f0000000.00000000.00400000.c3001018.00000000.e0000000.00000000.10000000.81001020.00000000.000060b0.00000000.00000008.a1001000.00000000.000003b0.00000000.0000000c.a1001000.00000000.000003c0.00000000.00000020.a2001000.00000000.000a0000.00000000.00020000
    reg: 00001000.00000000.00000000.00000000.00000000.03001010.00000000.00000000.00000000.00400000.43001018.00000000.00000000.00000000.10000000.01001020.00000000.00000000.00000000.00000008.a1001000.00000000.000003b0.00000000.0000000c.a1001000.00000000.000003c0.00000000.00000020.a2001000.00000000.000a0000.00000000.00020000
    compatible: 'pci8086,46.1028.410.2' + 'pci8086,46.1028.410' + 'pci1028,410' + 'pci8086,46.2' + 'pci8086,46' + 'pciclass,030000' + 'pciclass,0300'
    model: 'VGA compatible controller'
    power-consumption: 00000001.00000001
    fast-back-to-back:
    devsel-speed: 00000000
    interrupts: 00000001
    max-latency: 00000000
    min-grant: 00000000
    subsystem-vendor-id: 00001028
    subsystem-id: 00000410
    device_type: 'display'
    unit-address: '2'
    class-code: 00030000
    revision-id: 00000002
    vendor-id: 00008086
    device-id: 00000046
    name: 'display'
    Node 0x000006
    acpi-namespace: '\_SB_.PCI0.GLAN'
    assigned-addresses: 8200c810.00000000.f5400000.00000000.00020000.8200c814.00000000.f5480000.00000000.00001000.8100c818.00000000.00006040.00000000.00000020
    reg: 0000c800.00000000.00000000.00000000.00000000.0200c810.00000000.00000000.00000000.00020000.0200c814.00000000.00000000.00000000.00001000.0100c818.00000000.00000000.00000000.00000020
    compatible: 'pci8086,10ea.1028.410.5' + 'pci8086,10ea.1028.410' + 'pci1028,410' + 'pci8086,10ea.5' + 'pci8086,10ea' + 'pciclass,020000' + 'pciclass,0200'
    model: 'Ethernet controller'
    power-consumption: 00000001.00000001
    devsel-speed: 00000000
    interrupts: 00000001
    max-latency: 00000000
    min-grant: 00000000
    subsystem-vendor-id: 00001028
    subsystem-id: 00000410
    unit-address: '19'
    class-code: 00020000
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 000010ea
    name: 'pci1028,410'
    Node 0x000007
    acpi-namespace: '\_SB_.PCI0.EHC2'
    assigned-addresses: 8200d010.00000000.f5470000.00000000.00000400
    reg: 0000d000.00000000.00000000.00000000.00000000.0200d010.00000000.00000000.00000000.00000400
    compatible: 'pci8086,3b3c.1028.410.5' + 'pci8086,3b3c.1028.410' + 'pci1028,410' + 'pci8086,3b3c.5' + 'pci8086,3b3c' + 'pciclass,0c0320' + 'pciclass,0c03'
    model: 'Universal Serial Bus EHCI compliant'
    power-consumption: 00000001.00000001
    fast-back-to-back:
    devsel-speed: 00000001
    interrupts: 00000001
    max-latency: 00000000
    min-grant: 00000000
    subsystem-vendor-id: 00001028
    subsystem-id: 00000410
    unit-address: '1a'
    class-code: 000c0320
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 00003b3c
    name: 'pci1028,410'
    Node 0x000008
    acpi-namespace: '\_SB_.PCI0.HDEF'
    assigned-addresses: 8300d810.00000000.f5460000.00000000.00004000
    reg: 0000d800.00000000.00000000.00000000.00000000.0300d810.00000000.00000000.00000000.00004000
    compatible: 'pciex8086,3b57.1028.410.5' + 'pciex8086,3b57.1028.410' + 'pciex8086,3b57.5' + 'pciex8086,3b57' + 'pciexclass,040300' + 'pciexclass,0403' + 'pci8086,3b57.1028.410.5' + 'pci8086,3b57.1028.410' + 'pci1028,410' + 'pci8086,3b57.5' + 'pci8086,3b57' + 'pciclass,040300' + 'pciclass,0403'
    model: 'Mixed Mode device'
    power-consumption: 00000001.00000001
    devsel-speed: 00000000
    interrupts: 00000001
    subsystem-vendor-id: 00001028
    subsystem-id: 00000410
    unit-address: '1b'
    class-code: 00040300
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 00003b57
    name: 'pci1028,410'
    Node 0x000009
    acpi-namespace: '\_SB_.PCI0.RP01'
    slot-names: 00000001.746f6c53.00003333
    reg: 0000e000.00000000.00000000.00000000.00000000
    compatible: 'pciex8086,3b42.5' + 'pciex8086,3b42' + 'pciexclass,060400' + 'pciexclass,0604' + 'pci8086,3b42.5' + 'pci8086,3b42' + 'pciclass,060400' + 'pciclass,0604'
    model: 'PCI-PCI bridge'
    ranges: 81000000.00000000.00005000.81000000.00000000.00005000.00000000.00001000.82000000.00000000.f4000000.82000000.00000000.f4000000.00000000.01400000
    bus-range: 00000001.00000001
    #size-cells: 00000002
    #address-cells: 00000003
    device_type: 'pciex'
    power-consumption: 00000001.00000001
    physical-slot#: 00000000
    devsel-speed: 00000000
    interrupts: 00000001
    unit-address: '1c'
    class-code: 00060400
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 00003b42
    hotplug-capable:
    pci-hotplug-type: 00000001
    name: 'pci8086,3b42'
    Node 0x00000a
    acpi-namespace: '\_SB_.PCI0.RP02'
    slot-names: 00000001.746f6c53.00003433
    reg: 0000e100.00000000.00000000.00000000.00000000
    compatible: 'pciex8086,3b44.5' + 'pciex8086,3b44' + 'pciexclass,060400' + 'pciexclass,0604' + 'pci8086,3b44.5' + 'pci8086,3b44' + 'pciclass,060400' + 'pciclass,0604'
    model: 'PCI-PCI bridge'
    ranges: 81000000.00000000.00004000.81000000.00000000.00004000.00000000.00001000.82000000.00000000.f2c00000.82000000.00000000.f2c00000.00000000.01400000
    bus-range: 00000002.00000002
    #size-cells: 00000002
    #address-cells: 00000003
    device_type: 'pciex'
    power-consumption: 00000001.00000001
    physical-slot#: 00000001
    devsel-speed: 00000000
    interrupts: 00000002
    unit-address: '1c,1'
    class-code: 00060400
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 00003b44
    hotplug-capable:
    pci-hotplug-type: 00000001
    name: 'pci8086,3b44'
    Node 0x000013
    acpi-namespace: '\_SB_.PCI0.RP02.PXSX'
    assigned-addresses: 83020010.00000000.f2c00000.00000000.00002000
    reg: 00020000.00000000.00000000.00000000.00000000.03020010.00000000.00000000.00000000.00002000
    compatible: 'pciex8086,422c.8086.1321.35' + 'pciex8086,422c.8086.1321' + 'pciex8086,422c.35' + 'pciex8086,422c' + 'pciexclass,028000' + 'pciexclass,0280' + 'pci8086,422c.8086.1321.35' + 'pci8086,422c.8086.1321' + 'pci8086,1321' + 'pci8086,422c.35' + 'pci8086,422c' + 'pciclass,028000' + 'pciclass,0280'
    model: 'Network controller'
    power-consumption: 00000001.00000001
    devsel-speed: 00000000
    interrupts: 00000001
    subsystem-vendor-id: 00008086
    subsystem-id: 00001321
    unit-address: '0'
    class-code: 00028000
    revision-id: 00000035
    vendor-id: 00008086
    device-id: 0000422c
    name: 'pci8086,1321'
    Node 0x00000b
    acpi-namespace: '\_SB_.PCI0.RP03'
    slot-names: 00000001.746f6c53.00000038
    reg: 0000e200.00000000.00000000.00000000.00000000
    compatible: 'pciex8086,3b46.5' + 'pciex8086,3b46' + 'pciexclass,060400' + 'pciexclass,0604' + 'pci8086,3b46.5' + 'pci8086,3b46' + 'pciclass,060400' + 'pciclass,0604'
    model: 'PCI-PCI bridge'
    ranges: 81000000.00000000.00003000.81000000.00000000.00003000.00000000.00001000.82000000.00000000.f1800000.82000000.00000000.f1800000.00000000.01400000
    bus-range: 00000003.00000003
    #size-cells: 00000002
    #address-cells: 00000003
    device_type: 'pciex'
    power-consumption: 00000001.00000001
    physical-slot#: 00000002
    devsel-speed: 00000000
    interrupts: 00000003
    unit-address: '1c,2'
    class-code: 00060400
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 00003b46
    hotplug-capable:
    pci-hotplug-type: 00000001
    name: 'pci8086,3b46'
    Node 0x000014
    acpi-namespace: '\_SB_.PCI0.RP03.PXSX'
    assigned-addresses: 82030010.00000000.f1830000.00000000.00000100
    reg: 00030000.00000000.00000000.00000000.00000000.02030010.00000000.00000000.00000000.00000100
    compatible: 'pciex1180,e822.1028.410.1' + 'pciex1180,e822.1028.410' + 'pciex1180,e822.1' + 'pciex1180,e822' + 'pciexclass,080500' + 'pciexclass,0805' + 'pci1180,e822.1028.410.1' + 'pci1180,e822.1028.410' + 'pci1028,410' + 'pci1180,e822.1' + 'pci1180,e822' + 'pciclass,080500' + 'pciclass,0805'
    model: 'SD Host controller'
    power-consumption: 00000001.00000001
    devsel-speed: 00000000
    interrupts: 00000001
    subsystem-vendor-id: 00001028
    subsystem-id: 00000410
    unit-address: '0'
    class-code: 00080500
    revision-id: 00000001
    vendor-id: 00001180
    device-id: 0000e822
    name: 'pci1028,410'
    Node 0x00000c
    acpi-namespace: '\_SB_.PCI0.RP04'
    slot-names: 00000001.746f6c53.00000039
    reg: 0000e300.00000000.00000000.00000000.00000000
    compatible: 'pciex8086,3b48.5' + 'pciex8086,3b48' + 'pciexclass,060400' + 'pciexclass,0604' + 'pci8086,3b48.5' + 'pci8086,3b48' + 'pciclass,060400' + 'pciclass,0604'
    model: 'PCI-PCI bridge'
    ranges: 81000000.00000000.00002000.81000000.00000000.00002000.00000000.00001000.82000000.00000000.f0400000.82000000.00000000.f0400000.00000000.01400000
    bus-range: 00000004.00000009
    #size-cells: 00000002
    #address-cells: 00000003
    device_type: 'pciex'
    power-consumption: 00000001.00000001
    physical-slot#: 00000003
    devsel-speed: 00000000
    interrupts: 00000004
    unit-address: '1c,3'
    class-code: 00060400
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 00003b48
    hotplug-capable:
    pci-hotplug-type: 00000001
    name: 'pci8086,3b48'
    Node 0x00000d
    acpi-namespace: '\_SB_.PCI0.EHCI'
    assigned-addresses: 8200e810.00000000.f5450000.00000000.00000400
    reg: 0000e800.00000000.00000000.00000000.00000000.0200e810.00000000.00000000.00000000.00000400
    compatible: 'pci8086,3b34.1028.410.5' + 'pci8086,3b34.1028.410' + 'pci1028,410' + 'pci8086,3b34.5' + 'pci8086,3b34' + 'pciclass,0c0320' + 'pciclass,0c03'
    model: 'Universal Serial Bus EHCI compliant'
    power-consumption: 00000001.00000001
    fast-back-to-back:
    devsel-speed: 00000001
    interrupts: 00000001
    max-latency: 00000000
    min-grant: 00000000
    subsystem-vendor-id: 00001028
    subsystem-id: 00000410
    unit-address: '1d'
    class-code: 000c0320
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 00003b34
    name: 'pci1028,410'
    Node 0x00000e
    acpi-namespace: '\_SB_.PCI0.P0P1'
    slot-names: 0000002f.746f6c53.6c530031.0032746f.746f6c53.6c530033.0034746f.746f6c53.00000032
    reg: 0000f000.00000000.00000000.00000000.00000000
    compatible: 'pci8086,2448.a5' + 'pci8086,2448' + 'pciclass,060401' + 'pciclass,0604'
    model: 'Subtractive Decode PCI-PCI bridge'
    bus-range: 0000000a.0000000a
    #size-cells: 00000002
    #address-cells: 00000003
    device_type: 'pci'
    power-consumption: 00000001.00000001
    devsel-speed: 00000000
    unit-address: '1e'
    class-code: 00060401
    revision-id: 000000a5
    vendor-id: 00008086
    device-id: 00002448
    name: 'pci8086,2448'
    Node 0x00000f
    #size-cells: 00000001
    #address-cells: 00000002
    ranges: 00000001.00000000.81000000.00000000.00000000.00000022.00000001.00000024.81000000.00000000.00000024.00000002.00000001.00000028.81000000.00000000.00000028.00000002.00000001.0000002c.81000000.00000000.0000002c.00000006.00000001.00000034.81000000.00000000.00000034.00000002.00000001.00000038.81000000.00000000.00000038.00000002.00000001.0000003c.81000000.00000000.0000003c.00000002.00000001.00000040.81000000.00000000.00000040.00000004.00000001.0000004e.81000000.00000000.0000004e.00000006.00000001.00000060.81000000.00000000.00000060.00000002.00000001.00000063.81000000.00000000.00000063.00000003.00000001.00000067.81000000.00000000.00000067.00000001.00000001.00000070.81000000.00000000.00000070.00000008.00000001.00000070.81000000.00000000.00000070.00000001.00000001.00000080.81000000.00000000.00000080.00000022.00000001.000000a4.81000000.00000000.000000a4.00000002.00000001.000000a8.81000000.00000000.000000a8.00000002.00000001.000000ac.81000000.00000000.000000ac.00000002.00000001.000000b0.81000000.00000000.000000b0.00000006.00000001.000000b8.81000000.00000000.000000b8.00000002.00000001.000000bc.81000000.00000000.000000bc.00000002.00000001.000000c0.81000000.00000000.000000c0.00000020.00000001.000000f0.81000000.00000000.000000f0.00000001.00000001.00000400.81000000.00000000.00000400.00000080.00000001.000004d0.81000000.00000000.000004d0.00000002.00000001.00000500.81000000.00000000.00000500.00000080.00000001.00000680.81000000.00000000.00000680.00000020.00000001.00000930.81000000.00000000.00000930.00000001.00000001.00000934.81000000.00000000.00000934.00000001.00000001.00000cf8.81000000.00000000.00000cf8.00000008.00000001.00001000.81000000.00000000.00001000.00000014.00000001.0000164e.81000000.00000000.0000164e.00000002.00000001.0000ffff.81000000.00000000.0000ffff.00000001.00000000.f54c0000.82000000.00000000.f54c0000.00001000.00000000.f8000000.82000000.00000000.f8000000.04000000.00000000.fed00000.82000000.00000000.fed00000.00000400.00000000.fed10000.82000000.00000000.fed10000.00004000.00000000.fed18000.82000000.00000000.fed18000.00002000.00000000.fed1c000.82000000.00000000.fed1c000.00024000.00000000.fed45000.82000000.00000000.fed45000.0004b000.00000000.fee00000.82000000.00000000.fee00000.00100000.00000000.ff000000.82000000.00000000.ff000000.01000000.00000000.ff000000.82000000.00000000.ff000000.01000000
    acpi-namespace: '\_SB_.PCI0.LPCB'
    device_type: 'isa'
    reg: 0000f800.00000000.00000000.00000000.00000000
    compatible: 'pci8086,3b0f.1028.410.5' + 'pci8086,3b0f.1028.410' + 'pci1028,410' + 'pci8086,3b0f.5' + 'pci8086,3b0f' + 'pciclass,060100' + 'pciclass,0601'
    model: 'ISA bridge'
    power-consumption: 00000001.00000001
    devsel-speed: 00000001
    max-latency: 00000000
    min-grant: 00000000
    subsystem-vendor-id: 00001028
    subsystem-id: 00000410
    unit-address: '1f'
    class-code: 00060100
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 00003b0f
    name: 'isa'
    Node 0x00001c
    unit-address: '1,60'
    interrupts: 00000001.0000000c
    reg: 00000001.00000060.00000001.00000001.00000064.00000001
    name: 'i8042'
    Node 0x00001d
    compatible: 'pnpPNP,303'
    device-type: 'keyboard'
    interrupts: 00000001.0000000c
    reg: 00000000
    acpi-namespace: '\_SB_.PCI0.LPCB.PS2K'
    model: 'System keyboard'
    name: 'keyboard'
    Node 0x00001e
    compatible: 'pnpPNP,f03'
    device-type: 'mouse'
    reg: 00000001
    interrupts: 0000000c
    acpi-namespace: '\_SB_.PCI0.LPCB.PS2M'
    model: 'PS/2 Port for PS/2-style Mice'
    name: 'mouse'
    Node 0x00001f
    interrupts: 00000004
    reg: 00000001.000003f8.00000008
    model: 'Standard serial port'
    compatible: 'PNP0500'
    name: 'asy'
    Node 0x000010
    acpi-namespace: '\_SB_.PCI0.SAT0'
    assigned-addresses: 8100fa10.00000000.00006090.00000000.00000008.8100fa14.00000000.00006080.00000000.00000004.8100fa18.00000000.00006070.00000000.00000008.8100fa1c.00000000.00006060.00000000.00000004.8100fa20.00000000.00006020.00000000.00000020.8200fa24.00000000.f5440000.00000000.00000800
    reg: 0000fa00.00000000.00000000.00000000.00000000.0100fa10.00000000.00000000.00000000.00000008.0100fa14.00000000.00000000.00000000.00000004.0100fa18.00000000.00000000.00000000.00000008.0100fa1c.00000000.00000000.00000000.00000004.0100fa20.00000000.00000000.00000000.00000020.0200fa24.00000000.00000000.00000000.00000800
    compatible: 'pci8086,3b2f.1028.410.5' + 'pci8086,3b2f.1028.410' + 'pci1028,410' + 'pci8086,3b2f.5' + 'pci8086,3b2f' + 'pciclass,010601' + 'pciclass,0106'
    model: 'SATA AHCI 1.0 Interface'
    power-consumption: 00000001.00000001
    66mhz-capable:
    fast-back-to-back:
    devsel-speed: 00000001
    interrupts: 00000003
    max-latency: 00000000
    min-grant: 00000000
    subsystem-vendor-id: 00001028
    subsystem-id: 00000410
    unit-address: '1f,2'
    class-code: 00010601
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 00003b2f
    name: 'pci1028,410'
    Node 0x000011
    acpi-namespace: '\_SB_.PCI0.SBUS'
    assigned-addresses: 8300fb10.00000000.f5430000.00000000.00000100.8100fb20.00000000.00006000.00000000.00000020
    reg: 0000fb00.00000000.00000000.00000000.00000000.0300fb10.00000000.00000000.00000000.00000100.0100fb20.00000000.00000000.00000000.00000020
    compatible: 'pci8086,3b30.1028.410.5' + 'pci8086,3b30.1028.410' + 'pci1028,410' + 'pci8086,3b30.5' + 'pci8086,3b30' + 'pciclass,0c0500' + 'pciclass,0c05'
    model: 'SMBus (System Management Bus)'
    power-consumption: 00000001.00000001
    fast-back-to-back:
    devsel-speed: 00000001
    interrupts: 00000003
    max-latency: 00000000
    min-grant: 00000000
    subsystem-vendor-id: 00001028
    subsystem-id: 00000410
    unit-address: '1f,3'
    class-code: 000c0500
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 00003b30
    name: 'pci1028,410'
    Node 0x000012
    assigned-addresses: 8300fe10.00000000.f5420000.00000000.00001000
    reg: 0000fe00.00000000.00000000.00000000.00000000.0300fe10.00000000.00000000.00000000.00001000
    compatible: 'pci8086,3b32.1028.410.5' + 'pci8086,3b32.1028.410' + 'pci1028,410' + 'pci8086,3b32.5' + 'pci8086,3b32' + 'pciclass,118000' + 'pciclass,1180'
    model: 'DSP/DAP controllers'
    power-consumption: 00000001.00000001
    devsel-speed: 00000000
    interrupts: 00000003
    max-latency: 00000000
    min-grant: 00000000
    subsystem-vendor-id: 00001028
    subsystem-id: 00000410
    unit-address: '1f,6'
    class-code: 00118000
    revision-id: 00000005
    vendor-id: 00008086
    device-id: 00003b32
    name: 'pci1028,410'
    Node 0x000015
    device_type: 'acpirootnex'
    compatible: 'SOLA0001' + 'acpirootnex' + 'SOLA0002' + 'acpivirtnex'
    acpi-namespace: '\'
    name: 'fw'
    Node 0x000016
    unit-address: '1'
    compatible: 'SOLA0004' + 'acpicpu' + 'cpu'
    apic-id: 00000000
    acpi-processor-id: 00000001
    acpi-namespace: '\_PR_.CPU0'
    device_type: 'acpicpu'
    name: 'cpu'
    Node 0x000017
    unit-address: '2'
    compatible: 'SOLA0004' + 'acpicpu' + 'cpu'
    apic-id: 00000004
    acpi-processor-id: 00000002
    acpi-namespace: '\_PR_.CPU1'
    device_type: 'acpicpu'
    name: 'cpu'
    Node 0x000018
    unit-address: '3'
    compatible: 'SOLA0004' + 'acpicpu' + 'cpu'
    apic-id: 00000001
    acpi-processor-id: 00000003
    acpi-namespace: '\_PR_.CPU2'
    device_type: 'acpicpu'
    name: 'cpu'
    Node 0x000019
    unit-address: '4'
    compatible: 'SOLA0004' + 'acpicpu' + 'cpu'
    apic-id: 00000005
    acpi-processor-id: 00000004
    acpi-namespace: '\_PR_.CPU3'
    device_type: 'acpicpu'
    name: 'cpu'
    Node 0x00001a
    unit-address: '0'
    compatible: 'acpidevice' + 'SOLA0002' + 'acpivirtnex'
    acpi-namespace: '\_SB_'
    device_type: 'acpidevice'
    name: 'sb'
    Node 0x00001b
    io-space: 00000000.00000020.00000020.00000002.00000024.00000002.00000028.00000002.0000002c.00000002.0000002e.00000002.00000030.00000002.00000034.00000002.00000038.00000002.0000003c.00000002.00000040.00000004.0000004e.00000002.00000050.00000004.00000060.00000001.00000061.00000001.00000063.00000001.00000064.00000001.00000065.00000001.00000067.00000001.00000070.00000008.00000070.00000001.00000080.00000001.00000081.00000011.00000092.00000001.00000093.0000000d.000000a0.00000002.000000a4.00000002.000000a8.00000002.000000ac.00000002.000000b0.00000002.000000b2.00000002.000000b4.00000002.000000b8.00000002.000000bc.00000002.000000c0.00000020.000000f0.00000001.00000400.00000080.000004d0.00000002.00000500.00000080.00000680.00000020.00000930.00000001.00000934.00000001.00000cf8.00000008.00001000.00000004.00001004.00000010.0000164e.00000002.0000ffff.00000001
    device-memory: f54c0000.00001000.f8000000.04000000.fed00000.00000400.fed10000.00004000.fed18000.00001000.fed19000.00001000.fed1c000.00004000.fed20000.00020000.fed45000.0004b000.fee00000.00100000.ff000000.01000000.ff000000.01000000
    dma-channels: 00000004
    interrupts: 00000000.00000001.00000002.00000008.0000000c.0000000d
    name: 'used-resources'
    prtdiag:
    System Configuration: Dell Inc. Latitude E4310
    BIOS Configuration: Dell Inc. A05 11/20/2010
    ==== Processor Sockets ====================================
    Version Location Tag
    Intel(R) Core(TM) i5 CPU M 560 @ 2.67GH CPU 1
    ==== Memory Device Sockets ================================
    Type Status Set Device Locator Bank Locator
    Unknown in use 0 DIMM_A BANK 0
    unknown empty 0 DIMM_B BANK 2
    ==== On-Board Devices =====================================
    "Intel GM45 Graphics"
    NETWORK_NAME_STRING
    ==== Upgradeable Slots ====================================
    ID Status Type Description
    0 available PCI Express x16 J5C1
    1 available PCI Express J6C2
    2 in use PCI Express J6D2
    3 in use PCI Express J7C1
    4 available PCI Express J7D2
    System Information:
    Manufacturer:Dell Inc.
    Product:Latitude E4310
    BIOS Information:
    Vendor:Dell Inc.
    Version:A05
    Release Date:11/20/2010
    BIOS Revision: BIOS Revision:4.6
    Firmware Revision:
    MotherBoard Information:
    Product:0D8H24
    Manufacturer:Dell Inc.
    Version:A00
    Onboard Devices:[Video,Disabled]"Intel GM45 Graphics"
    CPU Information:
    Processor 0:
    Processor Socket Type:CPU 1
    Processor Manufacturer:Intel
    Current Voltage:0.0V
    External Clock:533MHZ
    Max Speed:4000MHZ
    Current Speed:2666MHZ
    Memory Information:
    Physical Memory: 4G (4G)
    Maximum Memory Support: 4096G
    Memory Subsystem 0:
    Array Used Function:System memory
    Memory Error Correction Supported:None
    Maximum Array Capacity:8G
    Number of Memory Devices:2
    Memory Device 0:
    Memory Device Locator:DIMM_A
    Total Width:64
    Data Width:64
    Installed Size:4096M
    Memory Device Type:Unknown
    Speed:1067MHZ
    Memory Device 1:
    [Not Installed]

  • Problems with MIDI, Sound, Etc.

    Hi all,
    Well, I have grown up on Macs and my dad has brought home everything from the Plus to the IIci to the Classic Colour when I was a kid 20 years go. Circumstances have forced me to move to PC, and I even had one in my home studio, but I recently had the chance to upgrade and was absolutely thrilled at the prospect of getting back into the Mac world after more than 10 years of absence. So, I got myself a Mac Mini 2.53 GHz (I only upgraded the hard drive to a 500 GB 7200-RPM model, as is common in the audio world), with a Focusrite Saffire 24 Pro DSP Firewire audio interface.
    Well, I am saddened to say that so far, I have been BITTERLY disappointed. Problems :
    1. This Mac is NOISY!!! I don't mean physical computer/fan/etc. noise. I mean static noise going through the interface. The interface is dead-silent during bootup until, at some point in the sequence (when looking at the Apple logo during bootup), the same static hiss and hum comes back that's been plaguing me for a few days. This noise seems to be matching my activities - it changes when I scroll, when I open a program, etc., for example. So, this is DEFINITELY sub-par;
    2. Snow Leopard simply refuses to acknowledge my Roland XV-5050's existence on USB. Ableton Live can find it in its list of "destinations" for MIDI data, but Audio Midi Setup simply refuses to even see it, precluding me from using Roland's very handy Editor. Again, unacceptable, given that I've never had this problem with PCs (although, Roland expressly does not support Vista with the XV-5050 USB drivers);
    3. There's something weird about the Mac (could also be Live, I suppose, but I never had this problem on PC) where my music applications do not see the Korg Legacy Cell VSTs that are installed, even though they are in the same folder as, say, Sylenth, which Live DOES see. (And they all end in .vst extensions.) What gives?
    I think that's it so far. I've got a very important gig coming up around Christmas time that I have to start getting ready for. I had anticipated virtually zero problems with the Mac, which is why I chose to upgrade, but the reality is definitely otherwise. Please, PLEASE don't make me buy the Dell Studio or something!!
    Thanks in advance for all the help!
    JS

    Korg Legacy and the XV are not critical to my workflow, just items I had invested on I would like to keep. I did not research compatibility with Snow Leopard vwery thoroughly for those two, but I certainly did with the interface, which IS critical. Focusrite has released brand-new drivers that are supposed to be compatible with Snow Leopard, as they loudly trumpet on their web site.
    And by and large, they do work - there's just that incessant noise. And THAT's an issue, and somehow I doubt it has to do with the interface as, like I mentioned, the noise only appears during the bootup sequence when, I assume, the Firewire drivers are loaded.
    Inputs?

  • Problems with Yahama RX-V667 receiver/HDMI

    System is 7232 (1.9/10.95), connected via hdmi to Yamaha RX-V667, which connects to an old Sony WEGA HD tv via hdmi. Some problems:
    1) when dvr / tv are turned on together via remote, the dvr shows a Select TV Type SD or HD, every time; this doesn't occur if the tv is turned on, then the dvr after some seconds;
    2) when the receiver is turned on and the dvr is the current input (hdmi), the video is sometimes distorted (wavy / staircase edges); if the input is switched to another input and back to the dvr, then the video is ok;
    3) on some tv movies, the receiver switches between Dolby Digital and PLIIX (the movie is not shown as 5.1, so it should just remain at stereo or PLIIX [if in dsp cinema mode]).
    I previously used a monoprice hdmi switcher and did not notice any problems (old receiver was not hdmi, just optical). I had hoped the new receiver could replace the previous setup (separate hdmi switcher, need for separate optical cables) and support modern codecs (DD Plus mainly for Netflix).
    I am trying to determine if the problem is weak hdmi support or defects in the RX-V667 or with the Motorola dvr. I am still in the return window for the receiver, so need to decide if I should return it. I haven't seen similar problems on searching,and most reviews of the receiver are positive (especially for the price; much more $$$ would obviously be better).
    Anyone out there with the same receiver and notice similar problems? Do better (eg $$$+++) receivers work better? Which brands, etc.???
    Thanks in advance for any advice.
    gary

    I do not know specifically about your Yamaha receiver, but anytime you daisy chain HDMI there is an opportunity for problems. HDMI has a history of squirrelly behavior, and there are many examples of incompatibilities all over the web. Some receivers have problems with pass-through or otherwise interfere with the HDMI signals. You could try hooking the HDMI directly to the TV, bypassing the Yamaha, and go some audio only connection to the Yamaha. One other thing - go to avsforum.com and look for the owner's thread for your Yamaha receiver and see what other owners of that equipment might be experiencing, and possible solutions. Good luck.

  • A problem with threads

    I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
    Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
    My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
    Thank you in advance,
    Lefty

    This was one solution from the socket programming forum, have you tried this??
    public Thread MyThread extends Thread{
         boolean active = true;          
         public void run(){
              ss.setSoTimeout(90);               
              while (active){                   
                   try{                       
                        serverSocket = ss.accept();
                   catch (SocketTimeoutException ste){
                   // do nothing                   
         // interrupt thread           
         public void deactivate(){               
              active = false;
              // you gotta sleep for a time longer than the               
              // accept() timeout to make sure that timeout is finished.               
              try{
                   sleep(91);               
              }catch (InterruptedException ie){            
              interrupt();
    }

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Problem with threads running javaw

    Hi,
    Having a problem with multi thread programming using client server sockets. The program works find when starting the the application in a console using java muti.java , but when using javaw multi.java the program doesnt die and have to kill it in the task manager. The program doesnt display any of my gui error messages either when the server disconnect the client. all works find in a console. any advice on this as I havent been able to understand why this is happening? any comment would be appreciated.
    troy.

    troy,
    Try and post a minimum code sample of your app which
    does not work.
    When using javaw, make sure you redirect the standard
    error and standard output streams to file.
    Graeme.Hi Graeme,
    I dont understand what you mean by redirection to file? some of my code below.
    The code works fine under a console, code is supposed to exit when the client (the other server )disconnects. the problem is that but the clientworker side of the code still works. which under console it doesnt.
    public class Server{
    ServerSocket aServerSocket;
    Socket dianosticsSocket;
    Socket nPortExpress;
    ClientListener aClientListener;
    LinkedList queue = new LinkedList();
    int port = 0;
    int clientPort = 0;
    String clientName = null;
    boolean serverAlive = true;
    * Server constructor generates a server
    * Socket and then starts a client threads.
    * @param aPort      socket port of local machine.
    public Server(int aPort, String aClientName, int aClientPort){
    port = aPort;
    clientName = aClientName;
    clientPort = aClientPort;
    try{
    // create a new thread
    aServerSocket = new ServerSocket(port) ;
    // connect to the nPortExpress
    aClientListener = new ClientListener(InetAddress.getByName(clientName), clientPort, queue,this);
    // aClientListener.setDaemon(true);
    aClientListener.start();
    // start a dianostic port
    DiagnosticsServer aDiagnosticsServer = new DiagnosticsServer(port,queue,aClientListener);
    // System.out.println("Server is running on port " + port + "...");
    // System.out.println("Connect to nPort");
    catch(Exception e)
    // System.out.println("ERROR: Server port " + port + " not available");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Server port " + port + " not available", JOptionPane.ERROR_MESSAGE);
    serverAlive = false;
    System.exit(1);
    while(serverAlive&&aClientListener.hostSocket.isConnected()){
    try{
    // connect the client
    Socket aClient = aServerSocket.accept();
    //System.out.println("open client connection");
    //System.out.println("client local: "+ aClient.getLocalAddress().toString());
    // System.out.println("client localport: "+ aClient.getLocalPort());
    // System.out.println("client : "+ aClient.getInetAddress().toString());
    // System.out.println("client port: "+ aClient.getLocalPort());
    // make a new client thread
    ClientWorker clientThread = new ClientWorker(aClient, queue, aClientListener, false);
    // start thread
    clientThread.start();
    catch(Exception e)
    //System.out.println("ERROR: Client connection failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client connection failure", JOptionPane.ERROR_MESSAGE);
    }// end while
    } // end constructor Server
    void serverExit(){
         JOptionPane.showMessageDialog(null, "Server ","ERROR: nPort Failure", JOptionPane.ERROR_MESSAGE);
         System.exit(1);
    }// end class Server
    *** connect to another server
    public class ClientListener extends Thread{
    InetAddress hostName;
    int hostPort;
    Socket hostSocket;
    BufferedReader in;
    PrintWriter out;
    boolean loggedIn;
    LinkedList queue;      // reference to Server queue
    Server serverRef; // reference to main server
    * ClientListener connects to the host server.
    * @param aHostName is the name of the host eg server name or IP address.
    * @param aHostPort is a port number of the host.
    * @param aLoginName is the users login name.
    public ClientListener(InetAddress aHostName, int aHostPort,LinkedList aQueue,Server aServer)      // reference to Server queue)
    hostName = aHostName;
    hostPort = aHostPort;
    queue = aQueue;
    serverRef = aServer;      
    // connect to the server
    try{
    hostSocket = new Socket(hostName, hostPort);
    catch(IOException e){
    //System.out.println("ERROR: Connection Host Failed");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort Failed", JOptionPane.ERROR_MESSAGE);     
    System.exit(0);
    } // end constructor ClientListener
    ** multi client connection server
    ClientWorker(Socket aSocket,LinkedList aQueue, ClientListener aClientListener, boolean diagnostics){
    queue = aQueue;
    addToQueue(this);
    client = aSocket;
    clientRef = aClientListener;
    aDiagnostic = diagnostics;
    } // end constructor ClientWorker
    * run method is the main loop of the server program
    * in change of handle new client connection as well
    * as handle all messages and errors.
    public void run(){
    boolean alive = true;
    String aSubString = "";
    in = null;
    out = null;
    loginName = "";
    loggedIn = false;
    while (alive && client.isConnected()&& clientRef.hostSocket.isConnected()){
    try{
    in = new BufferedReader(new InputStreamReader(client.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(client.getOutputStream()));
    if(aDiagnostic){
    out.println("WELCOME to diagnostics");
    broadCastDia("Connect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    out.println("WELCOME to Troy's Server");
    broadCastDia("Connect : client "+client.getInetAddress().toString());
         out.flush();
    String line;
    while(((line = in.readLine())!= null)){
    StringTokenizer aStringToken = new StringTokenizer(line, " ");
    if(!aDiagnostic){
    broadCastDia(line);
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    else{
    if(line.equals("GETIPS"))
    getIPs();
    else{
    clientRef.sendMessage(line); // send mesage out to netExpress
    out.println(line);
    out.flush();
    } // end while
    catch(Exception e){
    // System.out.println("ERROR:Client Connection reset");
                             JOptionPane.showMessageDialog(null, (e.toString()),"ERROR:Client Connection reset", JOptionPane.ERROR_MESSAGE);     
    try{
    if(aDiagnostic){
    broadCastDia("Disconnect : diagnostics "+client.getInetAddress().toString());
    out.flush();
    else {       
    broadCastDia("Disconnect : client "+client.getInetAddress().toString());
         out.flush();
    // close the buffers and connection;
    in.close();
    out.close();
    client.close();
    // System.out.println("out");
    // remove from list
    removeThreadQueue(this);
    alive = false;
    catch(Exception e){
    // System.out.println("ERROR: Client Connection reset failure");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Client Connection reset failure", JOptionPane.ERROR_MESSAGE);     
    }// end while
    } // end method run
    * method run - Generates io stream for communicating with the server and
    * starts the client gui. Run also parses the input commands from the server.
    public void run(){
    boolean alive = true;
    try{
    // begin to life the gui
    // aGuiClient = new ClientGui(hostName.getHostName(), hostPort, loginName, this);
    // aGuiClient.show();
    in = new BufferedReader(new InputStreamReader(hostSocket.getInputStream()));
    out = new PrintWriter(new OutputStreamWriter(hostSocket.getOutputStream()));
    while (alive && hostSocket.isConnected()){
    String line;
    while(((line = in.readLine())!= null)){
    System.out.println(line);
    broadCast(line);
    } // end while
    } // end while
    catch(Exception e){
    //     System.out.println("ERRORa Connection to host reset");
    JOptionPane.showMessageDialog(null, (e.toString()),"ERROR: Connection to nPort reset", JOptionPane.ERROR_MESSAGE);
    try{
    hostSocket.close();
         }catch(Exception a){
         JOptionPane.showMessageDialog(null, (a.toString()),"ERROR: Exception", JOptionPane.ERROR_MESSAGE);
    alive = false;
    System.exit(1);
    } // end method run

  • Problem with threads and camera.

    Hi everybody!
    I've a problem with taking snapshot.
    I would like to display a loading screen after it take snapshot ( sometimes i
    have to wait few seconds after i took snapshot. Propably photo is being taken in time where i have to wait).
    I was trying to use threads but i didn't succeed.
    I made this code:
    display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while((!performing.isShown()) && (backgroundCamera.isShown())){
                        Thread.yield();
                    notifyAll();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        this.wait();                   
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();This code is sometimes showing performing screen but sometimes no.
    I don't know why. In my opinion performing.isShown() method isn't working correctly.
    Does anyone have some idea how to use threads here?

    Hi,
    I've finally managed to work this fine.
    The code:
           Object o = new Object();
           display.setCurrent(perform);               
            new Thread(new Runnable(){
                public void run() {               
                    while(!performing.isShown()){
                        Thread.yield();
                   synchronized(o) {
                      o.notify();
            }).start();
            new Thread(new Runnable(){
                public void run() {
                    try {
                        synchronized(o) {
                           o.wait(1);
                    } catch(Exception e) {
                        exceptionHandler(e);
                    photo = camera.snapshot();                               
                    display.setCurrent(displayPhoto);
            }).start();

  • Problem with threads hanging

    We have a problem where our application stops responding after a few days of usage. Things will for fine for a day or two, and then pretty quickly threads will start getting hung up, usually in places where they are allocating memory
    We are running WebLogic 8.1 SP2 on Sun JDK 1.4.2_04 on Solaris 8 using the alternate threading model and the -server hotspot vm. We are running pretty much the same code that we had no problems with under WebLogic 6.1 SP4 and Sun JDK 1.3.1.
    A thread dump usually shows that some or all of our execute threads are in the state "waiting for monitor entry" even though they are not currently waiting on any java locks. Here is a sample thread from the thread dump (we have ~120 threads so I don't want to post the full dump).
    =============================================================================================
    "ExecuteThread: '8' for queue: 'itgCrmWarExecutionQueue'" daemon prio=5 tid=0x005941d0 nid=0x2c waiting for monitor entry [c807f000..c807fc28]
    at java.lang.String.substring(String.java:1446)
    at java.lang.String.substring(String.java:1411)
    at weblogic.servlet.internal.ServletRequestImpl.getRelativeUri(ServletRequestImpl.java:1872)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3492)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    =============================================================================================
    String.java line 1446 for this jdk allocates a new String object, and all the other threads in this state also are creating new objects or arrays, etc.
    We've done a pstack on this process when it's in this state, and the threads that are in the "waiting for monitor entry" that look like they're allocating memory are all waiting on the same lwp_mutex_lock with some allocation method that's calling into the native TwoGenerationCollectorPolicy.mem_allocate_work (see pstack output below for the same thread as in the thread dump above)
    =============================================================================================
    ----------------- lwp# 44 / thread# 44 --------------------
    ff31f364 lwp_mutex_lock (e3d70)
    fee92384 __1cNObjectMonitorGenter26MpnGThread__v_ (5000, 525c, 5000, 50dc, 4800, 4af0) + 2d8
    fee324d4 __1cSObjectSynchronizerKfast_enter6FnGHandle_pnJBasicLock_pnGThread__v_ (c807f65c, c807f7d4, 5941d0, 0, 35d654, fee328ec) + 68
    fee32954 __1cQinstanceRefKlassZacquire_pending_list_lock6FpnJBasicLock__v_ (c807f7d4, ff170000, d4680000, 4491d4, fee1bc2c,
    0) + 78
    fee3167c __1cPVM_GC_OperationNdoit_prologue6M_i_ (c807f7bc, 4400, ff170000, 2d2b8, 4a6268, c807fa18) + 38
    fee2e0b0 __1cIVMThreadHexecute6FpnMVM_Operation__v_ (c807f7bc, 963a8, 0, 0, 1, 0) + 90
    fed2c2a4 __1cbCTwoGenerationCollectorPolicyRmem_allocate_work6MIii_pnIHeapWord__ (962c0, ff1c29ec, ff1c297c, ff131a26, 4800, 4998) + 160
    fed22940 __1cNinstanceKlassRallocate_instance6MpnGThread__pnPinstanceOopDesc__ (ee009020, 5941d0, 15ca581, 3647f0, 4a6268, c807f8c8) + 180
    fed34928 __1cLOptoRuntimeFnew_C6FpnMklassOopDesc_pnKJavaThread__v_ (ee009018, 5941d0, 0, 0, 0, 0) + 28
    fa435a58 ???????? (ee009018, e86de, 15ca4de, 50dc, 5941d0, c807f9c8)
    fb36f9a4 ???????? (0, d412ccd8, ee046c28, ff170000, 0, 0)
    fad8b278 ???????? (ee046c28, d6000c90, ee046530, 8, db8e8450, c807f9e8)
    fad62abc ???????? (d412ccd8, ee046530, d6000c90, ee3bfa38, 8, c807fa18)
    fa4b3c38 ???????? (c807fb9c, 0, f2134700, fa415e50, 8, c807faa8)
    fa40010c ???????? (c807fc28, c807fe90, a, ee9e1e20, 4, c807fb40)
    fed5d48c __1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_ (c807fe88, c807fcf0, c807fda8, 5941d0, 5941d0, c807fd00) + 27c
    fee4b784 __1cJJavaCallsMcall_virtual6FpnJJavaValue_nLKlassHandle_nMsymbolHandle_4pnRJavaCallArguments_pnGThread__v_ (ff170000, 594778, c807fd9c, c807fd98, c807fda8, 5941d0) + 164
    fee5e8dc __1cJJavaCallsMcall_virtual6FpnJJavaValue_nGHandle_nLKlassHandle_nMsymbolHandle_5pnGThread__v_ (c807fe88, c807fe84, c807fe7c, c807fe74, c807fe6c, 5941d0) + 6c
    fee6fc74 __1cMthread_entry6FpnKJavaThread_pnGThread__v_ (5941d0, 5941d0, 838588, 594778, 306d10, fee69254) + 128
    fee6927c __1cKJavaThreadDrun6M_v_ (5941d0, 2c, 40, 0, 40, 0) + 284
    fee6575c _start   (5941d0, fa1a1600, 0, 0, 0, 0) + 134
    ff3758c0 lwpstart (0, 0, 0, 0, 0, 0)
    =============================================================================================
    Also when it's having this problem, the "VM Thread" is always using a lot of processor time. We did a couple of pstacks today while it was having this problem, and this thread was stuck in the ONMethodSweeper.sweep for over 15 minutes when we finally killed the server.
    From the thread dump:
    "VM Thread" prio=5 tid=0x000e2d20 nid=0x2 runnable
    From the first pstack:
    =============================================================================================
    ----------------- lwp# 2 / thread# 2 --------------------
    fed40c04 __1cXvirtual_call_RelocationIparse_ic6FrpnICodeBlob_rpC5rppnHoopDesc_pi_nNRelocIterator__ (42a2f4, fa5fa46d, ffffffff, fc4ffcb8, 42a2f4, 42a324) + 124
    fed46318 __1cKCompiledIC2t5B6MpnKRelocation__v_ (42a2f0, fc4ffd24, fc4ffd4c, e802, 0, 6) + 38
    fed90c38 __1cHnmethodVcleanup_inline_caches6M_v_ (fa5f7f88, fa608940, 1, 0, fa400000, 6) + 1ac
    fede18b4 __1cONMethodSweeperFsweep6F_v_ (2cf38, 0, ffffffff, ff1cf1fc, ff1c66e8, fede1d44) + 1b0
    fede1e6c __1cUSafepointSynchronizeFbegin6F_v_ (2cf38, ff1ba138, 5000, 50dc, 5000, 525c) + 248
    feef1fd4 __1cIVMThreadEloop6M_v_ (4400, 4000, 4324, 4000, 42b0, 3800) + 3d4
    feef1ae4 __1cIVMThreadDrun6M_v_ (e2d20, 2, 40, 0, 40, 0) + 8c
    fee6575c _start   (e2d20, ff270200, 0, 0, 0, 0) + 134
    ff3758c0 lwpstart (0, 0, 0, 0, 0, 0)
    =============================================================================================
    Second pstack
    =============================================================================================
    ----------------- lwp# 2 / thread# 2 --------------------
    fed41180 __1cXvirtual_call_RelocationIparse_ic6FrpnICodeBlob_rpC5rppnHoopDesc_pi_nNRelocIterator__ (0, ff1b9664, ffffffff, fc4ffcb8, a6f2cc, fc4ffbd0) + 6a0
    fed46318 __1cKCompiledIC2t5B6MpnKRelocation__v_ (a6f2c8, fc4ffd24, fc4ffd4c, e802, 0, 6) + 38
    fed90c38 __1cHnmethodVcleanup_inline_caches6M_v_ (faded4c8, fadf2c80, 1, 0, fa400000, 6) + 1ac
    fede18b4 __1cONMethodSweeperFsweep6F_v_ (2cf38, 0, ffffffff, ff1cf1fc, ff1c66e8, fede1d44) + 1b0
    fede1e6c __1cUSafepointSynchronizeFbegin6F_v_ (2cf38, ff1ba138, 5000, 50dc, 5000, 525c) + 248
    feef1fd4 __1cIVMThreadEloop6M_v_ (4400, 4000, 4324, 4000, 42b0, 3800) + 3d4
    feef1ae4 __1cIVMThreadDrun6M_v_ (e2d20, 2, 40, 0, 40, 0) + 8c
    fee6575c _start   (e2d20, ff270200, 0, 0, 0, 0) + 134
    ff3758c0 lwpstart (0, 0, 0, 0, 0, 0)
    =============================================================================================
    Has anyone ever seen anything like this? I'm trying to figure out if this is caused by something we're doing, or something relating to our environment and jvm options. Any ideas?

    Thanks for the reply - I'm testing our app with the +UseConcMarkSweepGC now in our test environment to make sure it doesn't cause any problems there.  Unfortunately the only place we've had this problem is on the production server, so it's extra difficult debugging this. 
    We're using the following memory options:
    -ms512m -mx512m -XX:NewSize=128m -XX:PermSize=192m -XX:MaxNewSize=128m -XX:MaxPermSize=192m -XX:SurvivorRatio=8and the following debugging options, as we've also been seeing OutOfMemoryErrors ( see http://forum.java.sun.com/thread.jsp?forum=37&thread=522354&tstart=45&trange=15 )
    -verbosegc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGCBTW, which c++filt version and options are you using? Our Solaris boxes only seem to have the GNU version installed. I was trying to run that on some of the other stack traces and wasn't getting anywhere, and didn't know if because it was GNU version wouldn't work on something compiled with the Sun compiler.
    Thanks!
    --Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem with threads and ProgressMonitor

    Dear Friends:
    I have a little problem with a thread and a ProgressMonitor. I have a long time process that runs in a thread (the thread is in an separate class). The thread has a ProgressMonitor that works fine and shows the tasks progress.
    But I need deactivate the main class(the main class is the user interface) until the thread ends.
    I use something like this:
    LongTask myTask=new LongTask();
    myTask.start();
    myTask.join();
    Now, the main class waits for the task to end, but the progress monitor don`t works fine: it shows only the dialog but not the progress bar.
    What's wrong?

    Is the dialog a modal dialog? This can block other UI updates.
    In general, you should make sure that it isn't modal, and that your workThread has a fairly low priority so that the UI can do its updating

  • Problem with threads and/or memory

    I'm developing an application where there are 3 threads. One of them sends a request to the other, and if the 2nd can't answer it, it sends it to the 3rd (similar to CPU -> CACHE -> MEMORY). When i run the program with 1000-10.000 requests, no problem occurs. When i run it with 300.000-1.000.000 requests, it sometimes hangs. Is this a problem with the garbage collector, or should it be related to the threads mecanism.
    (note: eache thread is in execution using a finite state machine)

    i had been running the program inside Netbeans.
    Running the jar using the command line outside
    Netbeans i have no more problems... Does Netbeans use
    it's own JVM?Depends how you set it up, but look under the options. There are settings for the compiler and jvm that it uses.

Maybe you are looking for

  • Receiver file adapter

    hi all, i'm using file adapter receiver and want to generate an fixed length text file. the name of the text file i want to generate it dynamically based on a field of the xml. the structure of xml: <mt_PO>   <Header>   </Header>   <Detail>   </Detai

  • Memory and dual channel problems

    Hi Can someone help me? 1- I have 2x512 MB DDR 400 Twinmos CL 2.5 and amd xp 2600 (fsb 333) and Msi K7n2 delta L. I have tested separatly my sticks, one of them woks great, if i put dram clock at 166 or 200 the sytem is always stable. The other stick

  • Sharepoint - asset management?

    Dear all, Can you please help me define what the functional advantages and disadvantages are of using Sharepoint as an asset management tool? Thank you so much, we're looking at sharepoint or spiceworks for the job and I need to draw a comparison of

  • Insert File Path into Text Field

    I am trying to create a text filed at the bottom of a form document that will automatically input the file path (e.g.. C\:Folder\File) of the document itself after the document is saved.  I've looked at a few Scripts but nothing seems to be working. 

  • Using iPhoto with two different computers AND version

    I have 2 macs at my home (laptop and desktop). I have iPhoto 08 on the desktop and iPhoto 09 on my laptop. One day, I accessed my iPhoto library located on my desktop from my laptop via network sharing. I skimmed through the warning messages about th