What is JAVAC: invalid argument
I have a program which compiles and runs but when I try to compile it in FORTE I get "JAVAC: invalid argument"
What argument is it talking about here? Nothing seems to help; from mounting file systems and setting classpaths in the compilers. Any idea what I'm not doing right?
Thanks.
Hi,
that is that misleading thing with error messages -
they state a condition, that was expected, but was not fullfilled - here it was invalid argument - an argument was expected, that javac can understand, it was missing and so the error message was brought up.
That is normal, an error message is definitely no advice, how to go on. If you will follow all the compiler-"suggestions" for example, you will get a syntactical correct program after a while, but you will be mislead to a program, that don't reflect the original semantic. Those messages are neither suggestions nor advice at all - they state a condition, that was not matched during execution - nothing more nothing less.
greetings Marsian
Similar Messages
-
Invalid Argument ? WHat's wrong with a url?
package chapter5networks;
import java.io.*;
import java.net.*;
public class GetURL {
public static void main(String[] args) {
InputStream inStream = null;
OutputStream outStream = null;
try {
if ( (args.length!= 1) && (args.length != 2))
throw new IllegalArgumentException("Wrong number of args");
URL myurl = new URL(args[0]);
inStream = myurl.openStream();
//System.err.println("DEBUG");
if (args.length == 2)
outStream = new FileOutputStream(args[1]);
else outStream = System.out;
byte[] myBuffer = new byte[4096];
int bytes_read;
while((bytes_read = inStream.read(myBuffer)) != -1)
outStream.write(myBuffer, 0, bytes_read);
catch (Exception e) {
System.err.println(e);
System.err.println(" HERE! Usage: java GETURL <URL> [<filename>]");
finally {
try {
inStream.close();
outStream.close();
catch (Exception e) {
e.printStackTrace();
}Hey everyone,
I realize that the line inStream = myurl.openStream(); is creating error, I am getting invalid argument as a reason when I do the following:
java GetURL http://www.google.com
What's wrong with the urlIf you ask me, the only way you can get an 'invalid argument' message with a SocketException is by specifying a port number of zero or > 65535. I find it hard to believe that the author of that package really went to the pointless trouble of remapping the real exceptions into what he describes on that page, so I have to conclude that he probably just doesn't know what he's talking about.
In reality, you get a ConnectException: connection refused for the first two cases he cites, and a ConnectException: connection timeout for the third.
And what he has to say about 'connection reset by peer' is complete and utter drivel. It has only one cause: the peer has issued a TCP RST, which happens either on an abortive close, or in response to receiving data after the peer application has already closed his end of the connection. -
[Amixer] Invalid Argument - Sound but not levels
\o/
I recently bought a USB Headset. I'm using ALSA without Pulseaudio. The sound is working fine, but I have a problem setting levels etc.
When I open amixer and the default card is set to the headset, the mixer fails to load with
amixer: Mixer default load error: Invalid argument
I have read the whole internets about this. The usb-snd kernel module is loaded properly.
Some intel users have fixed their issue with using mode=generic. But if i'm correct this will disable 7.1 playback ability.
This is the output from
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headset [SteelSeries SC2 USB Headset], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
And here is my ALSA Information script output:
upload=true&script=true&cardinfo=
!!ALSA Information Script v 0.4.63
!!Script ran on: Fri May 9 09:08:07 UTC 2014
!!Linux Distribution
Arch Linux \r (\l) NAME="Arch Linux" ID=arch PRETTY_NAME="Arch Linux" HOME_URL="https://www.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://bugs.archlinux.org/"
!!DMI Information
Manufacturer: Acer
Product Name: Aspire 5755
Product Version: V1.18
Firmware Version: V1.18
!!Kernel Information
Kernel release: 3.14.1-1-ARCH
Operating System: GNU/Linux
Architecture: x86_64
Processor: unknown
SMP Enabled: Yes
!!ALSA Version
Driver version: k3.14.1-1-ARCH
Library version: 1.0.27.2
Utilities version: 1.0.27.2
!!Loaded ALSA modules
snd_hda_intel
snd_usb_audio
!!Sound Servers on this system
Jack:
Installed - Yes (/usr/bin/jackd)
Running - No
!!Soundcards recognised by ALSA
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xc0700000 irq 47
1 [Headset ]: USB-Audio - SteelSeries SC2 USB Headset
SteelSeries SteelSeries SC2 USB Headset at usb-0000:00:1d.0-1.2, full speed
!!PCI Soundcards installed in the system
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
!!Advanced information - PCI Vendor/Device/Subsystem ID's
00:1b.0 0403: 8086:1c20 (rev 04)
Subsystem: 1025:0504
!!Loaded sound module options
!!Module: snd_hda_intel
align_buffer_size : -1
bdl_pos_adj : 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
beep_mode : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
enable_msi : -1
id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
jackpoll_ms : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
patch : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
position_fix : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
power_save : 0
power_save_controller : Y
probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
single_cmd : N
snoop : Y
!!Module: snd_usb_audio
autoclock : Y
device_setup : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
ignore_ctl_error : N
index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
pid : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
vid : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
!!HDA-Intel Codec information
--startcollapse--
Codec: Realtek ALC269VB
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0269
Subsystem Id: 0x10250504
Revision Id: 0x100100
No Modem Function Group found
Default PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
Power states: D0 D1 D2 D3 CLKSTOP EPSS
Power: setting=D0, actual=D0
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0x1d: Stereo Amp-Out
Control: name="Headphone Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Device: name="ALC269VB Analog", type="Audio", device=0
Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
Amp-Out vals: [0x00 0x00]
Converter: stream=0, channel=0
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x1d: Stereo Amp-Out
Control: name="Speaker Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
Amp-Out vals: [0x00 0x00]
Converter: stream=0, channel=0
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
rates [0x5e0]: 44100 48000 88200 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Control: name="Capture Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Capture Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Device: name="ALC269VB Analog", type="Audio", device=0
Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x13 0x13]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x23
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x8b 0x8b]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Connection: 1
0x22
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Control: name="Internal Mic Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=3, ofs=0
Control: name="Internal Mic Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=3, ofs=0
Control: name="Mic Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Mic Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Beep Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=4, ofs=0
Control: name="Beep Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=4, ofs=0
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 5
0x18 0x19 0x1a 0x1b 0x1d
Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2
0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2
0x03 0x0b
Node 0x0e [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0f [Audio Mixer] wcaps 0x20010a: Mono Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00] [0x80]
Connection: 2
0x02 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Pin Complex] wcaps 0x40000b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals: [0x00 0x00]
Pincap 0x00000020: IN
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Control: name="Speaker Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Speaker Phantom Jack", index=0, device=0
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x00010014: OUT EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x99130110: [Fixed] Speaker at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c 0x0d*
Node 0x15 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x16 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x17 [Pin Complex] wcaps 0x40010c: Mono Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80]
Pincap 0x00000010: OUT
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Connection: 1
0x0f
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Control: name="Mic Boost Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Mic Jack", index=0, device=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80 0x80]
Pincap 0x00001734: IN OUT Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x03a19820: [Jack] Mic at Ext Left
Conn = 1/8, Color = Pink
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=02, enabled=1
Connection: 1
0x0d
Node 0x19 [Pin Complex] wcaps 0x40008b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals: [0x00 0x00]
Pincap 0x00001724: IN Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80 0x80]
Pincap 0x0000003c: IN OUT HP Detect
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c* 0x0d
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Control: name="Internal Mic Boost Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Internal Mic Phantom Jack", index=0, device=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x80 0x80]
Pincap 0x00000034: IN OUT Detect
Pin Default 0x99a30930: [Fixed] Mic at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0x3, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c* 0x0d
Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
Pincap 0x00000020: IN
Pin Default 0x598301f0: [N/A] Line In at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400381: Stereo Digital
Pincap 0x00000014: OUT Detect
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 1
0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Processing caps: benign=0, ncoeff=25
Node 0x21 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Control: name="Headphone Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Headphone Jack", index=0, device=0
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x0000001c: OUT HP Detect
Pin Default 0x0321101f: [Jack] HP Out at Ext Left
Conn = 1/8, Color = Black
DefAssociation = 0x1, Sequence = 0xf
Pin-ctls: 0xc0: OUT HP
Unsolicited: tag=01, enabled=1
Connection: 2
0x0c* 0x0d
Node 0x22 [Audio Selector] wcaps 0x30010b: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
Connection: 7
0x18* 0x19 0x1a 0x1b 0x1d 0x0b 0x12
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80]
Connection: 6
0x18 0x19 0x1a 0x1b 0x1d 0x0b
Codec: Intel CougarPoint HDMI
Address: 3
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x80862805
Subsystem Id: 0x80860101
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
rates [0x0]:
bits [0x0]:
formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
Power states: D0 D3 CLKSTOP EPSS
Power: setting=D0, actual=D0, Clock-stop-OK
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1e]: 16 20 24 32
formats [0x5]: PCM AC3
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1e]: 16 20 24 32
formats [0x5]: PCM AC3
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1e]: 16 20 24 32
formats [0x5]: PCM AC3
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Control: name="HDMI/DP,pcm=3 Jack", index=0, device=0
Control: name="IEC958 Playback Con Mask", index=0, device=0
Control: name="IEC958 Playback Pro Mask", index=0, device=0
Control: name="IEC958 Playback Default", index=0, device=0
Control: name="IEC958 Playback Switch", index=0, device=0
Control: name="ELD", index=0, device=3
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x09000094: OUT Detect HBR HDMI DP
Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=01, enabled=1
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1
0x02
Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x80]
Pincap 0x09000094: OUT Detect HBR HDMI DP
Pin Default 0x58560020: [N/A] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1
0x03
Node 0x07 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x80]
Pincap 0x09000094: OUT Detect HBR HDMI DP
Pin Default 0x58560030: [N/A] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1
0x04
Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono
--endcollapse--
!!USB Mixer information
--startcollapse--
USB Mixer: usb_id=0x10381216, ctrlif=0, ctlerr=0
Card: SteelSeries SteelSeries SC2 USB Headset at usb-0000:00:1d.0-1.2, full speed
Unit: 2
Control: name="Headphone Playback Volume", index=0
Info: id=2, control=2, cmask=0xff, channels=8, type="S16"
Volume: min=-18944, max=0, dBmin=-7400, dBmax=0
Unit: 2
Control: name="Headphone Playback Switch", index=0
Info: id=2, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
Volume: min=0, max=1, dBmin=0, dBmax=0
Unit: 6
Control: name="Mic Capture Volume", index=0
Info: id=6, control=2, cmask=0x3, channels=2, type="S16"
Volume: min=-18944, max=0, dBmin=-7400, dBmax=0
Unit: 6
Control: name="Mic Capture Switch", index=0
Info: id=6, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
Volume: min=0, max=1, dBmin=0, dBmax=0
Unit: 9
Control: name="Sidetone Playback Volume", index=0
Info: id=9, control=2, cmask=0x0, channels=1, type="S16"
Volume: min=-18944, max=-4608, dBmin=-7400, dBmax=-1800
Unit: 9
Control: name="Sidetone Playback Switch", index=0
Info: id=9, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
Volume: min=0, max=1, dBmin=0, dBmax=0
Unit: 10
Control: name="PCM Volume", index=4
Info: id=10, control=9, cmask=0x40, channels=1, type="S16"
Volume: min=0, max=1, dBmin=0, dBmax=0
Unit: 10
Control: name="PCM Volume", index=3
Info: id=10, control=8, cmask=0x80, channels=1, type="S16"
Volume: min=0, max=1, dBmin=0, dBmax=0
Unit: 10
Control: name="PCM Volume", index=2
Info: id=10, control=5, cmask=0x80, channels=1, type="S16"
Volume: min=0, max=1, dBmin=0, dBmax=0
Unit: 10
Control: name="PCM Volume", index=1
Info: id=10, control=4, cmask=0x20, channels=1, type="S16"
Volume: min=0, max=1, dBmin=0, dBmax=0
Unit: 10
Control: name="PCM Volume", index=0
Info: id=10, control=3, cmask=0x90, channels=2, type="S16"
Volume: min=0, max=1, dBmin=0, dBmax=0
--endcollapse--
!!ALSA Device nodes
crw-rw----+ 1 root audio 116, 7 May 8 10:30 /dev/snd/controlC0
crw-rw----+ 1 root audio 116, 10 May 9 07:29 /dev/snd/controlC1
crw-rw----+ 1 root audio 116, 6 May 8 10:30 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116, 5 May 8 10:30 /dev/snd/hwC0D3
crw-rw----+ 1 root audio 116, 4 May 8 10:30 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116, 3 May 8 10:46 /dev/snd/pcmC0D0p
crw-rw----+ 1 root audio 116, 2 May 8 10:30 /dev/snd/pcmC0D3p
crw-rw----+ 1 root audio 116, 9 May 9 07:29 /dev/snd/pcmC1D0c
crw-rw----+ 1 root audio 116, 8 May 9 08:45 /dev/snd/pcmC1D0p
crw-rw----+ 1 root audio 116, 1 May 8 10:30 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 May 8 10:30 /dev/snd/timer
/dev/snd/by-id:
total 0
drwxr-xr-x 2 root root 60 May 9 07:29 .
drwxr-xr-x 4 root root 300 May 9 07:29 ..
lrwxrwxrwx 1 root root 12 May 9 07:29 usb-SteelSeries_SteelSeries_SC2_USB_Headset_000000000000-00 -> ../controlC1
/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 80 May 9 07:29 .
drwxr-xr-x 4 root root 300 May 9 07:29 ..
lrwxrwxrwx 1 root root 12 May 8 10:30 pci-0000:00:1b.0 -> ../controlC0
lrwxrwxrwx 1 root root 12 May 9 07:29 pci-0000:00:1d.0-usb-0:1.2:1.0 -> ../controlC1
!!ALSA configuration files
!!User specific config file (~/.asoundrc)
# ALSA library configuration file
# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
</home/mastermind/.asoundrc.asoundconf>
pcm.!default {
type hw
card 1
ctl.!default {
type hw
card 1
!!asoundconf-generated config file
# ALSA library configuration file managed by asoundconf(1).
# MANUAL CHANGES TO THIS FILE WILL BE OVERWRITTEN!
# Manual changes to the ALSA library configuration should be implemented
# by editing the ~/.asoundrc file, not by editing this file.
!defaults.pcm.card Headset
defaults.ctl.card Headset
defaults.pcm.device 0
defaults.pcm.subdevice -1
defaults.pcm.nonblock 1
defaults.pcm.compat 0
defaults.pcm.minperiodtime 5000
defaults.pcm.ipc_key 5678293
defaults.pcm.ipc_gid audio
defaults.pcm.ipc_perm 0660
defaults.pcm.dmix.max_periods 0
defaults.pcm.dmix.rate 48000
defaults.pcm.dmix.format "unchanged"
defaults.pcm.dmix.card defaults.pcm.card
defaults.pcm.dmix.device defaults.pcm.device
defaults.pcm.dsnoop.card defaults.pcm.card
defaults.pcm.dsnoop.device defaults.pcm.device
defaults.pcm.front.card defaults.pcm.card
defaults.pcm.front.device defaults.pcm.device
defaults.pcm.rear.card defaults.pcm.card
defaults.pcm.rear.device defaults.pcm.device
defaults.pcm.center_lfe.card defaults.pcm.card
defaults.pcm.center_lfe.device defaults.pcm.device
defaults.pcm.side.card defaults.pcm.card
defaults.pcm.side.device defaults.pcm.device
defaults.pcm.surround40.card defaults.pcm.card
defaults.pcm.surround40.device defaults.pcm.device
defaults.pcm.surround41.card defaults.pcm.card
defaults.pcm.surround41.device defaults.pcm.device
defaults.pcm.surround50.card defaults.pcm.card
defaults.pcm.surround50.device defaults.pcm.device
defaults.pcm.surround51.card defaults.pcm.card
defaults.pcm.surround51.device defaults.pcm.device
defaults.pcm.surround71.card defaults.pcm.card
defaults.pcm.surround71.device defaults.pcm.device
defaults.pcm.iec958.card defaults.pcm.card
defaults.pcm.iec958.device defaults.pcm.device
defaults.pcm.modem.card defaults.pcm.card
defaults.pcm.modem.device defaults.pcm.device
defaults.pcm.file_format "raw"
defaults.pcm.file_truncate true
defaults.rawmidi.card 0
defaults.rawmidi.device 0
defaults.rawmidi.subdevice -1
defaults.hwdep.card 0
defaults.hwdep.device 0
defaults.timer.class 2
defaults.timer.sclass 0
defaults.timer.card 0
defaults.timer.device 0
defaults.timer.subdevice 0
defaults.namehint.showall off
defaults.namehint.basic on
defaults.namehint.extended off
!!Aplay/Arecord output
APLAY
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headset [SteelSeries SC2 USB Headset], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
ARECORD
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headset [SteelSeries SC2 USB Headset], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
!!Amixer output
!!-------Mixer controls for card 0 [PCH]
Card hw:0 'PCH'/'HDA Intel PCH at 0xc0700000 irq 47'
Mixer name : 'Intel CougarPoint HDMI'
Components : 'HDA:10ec0269,10250504,00100100 HDA:80862805,80860101,00100000'
Controls : 32
Simple ctrls : 13
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 0 [0%] [-65.25dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 250 [98%] [-1.00dB]
Front Right: Playback 250 [98%] [-1.00dB]
Simple mixer control 'Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Beep',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 31
Front Left: Capture 19 [61%] [12.00dB] [on]
Front Right: Capture 19 [61%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Enabled'
Simple mixer control 'Digital',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 120
Front Left: Capture 60 [50%] [0.00dB]
Front Right: Capture 60 [50%] [0.00dB]
Simple mixer control 'Internal Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Internal Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
!!-------Mixer controls for card 1 [Headset]
amixer: Mixer load hw:1 error: Invalid argument
Card hw:1 'Headset'/'SteelSeries SteelSeries SC2 USB Headset at usb-0000:00:1d.0-1.2, full speed'
Mixer name : 'USB Mixer'
Components : 'USB1038:1216'
Controls : 13
amixer: Mixer hw:1 load error: Invalid argument
!!Alsactl output
--startcollapse--
--endcollapse--
!!All Loaded Modules
Module
fuse
hid_generic
snd_usb_audio
usbhid
snd_usbmidi_lib
hid
snd_rawmidi
snd_seq_device
ctr
ccm
mousedev
arc4
ath9k
ath9k_common
ath9k_hw
ath
mac80211
cfg80211
tg3
ptp
pps_core
libphy
snd_hda_codec_hdmi
snd_hda_codec_realtek
snd_hda_codec_generic
iTCO_wdt
iTCO_vendor_support
joydev
acer_wmi
sparse_keymap
rfkill
uvcvideo
videobuf2_vmalloc
videobuf2_memops
videobuf2_core
videodev
media
intel_rapl
x86_pkg_temp_thermal
intel_powerclamp
kvm_intel
kvm
crct10dif_pclmul
crc32_pclmul
crc32c_intel
ghash_clmulni_intel
aesni_intel
aes_x86_64
lrw
gf128mul
glue_helper
ablk_helper
cryptd
microcode
psmouse
snd_hda_intel
i915
snd_hda_codec
snd_hwdep
snd_pcm
evdev
mac_hid
snd_timer
coretemp
drm_kms_helper
snd
hwmon
pcspkr
serio_raw
drm
i2c_i801
shpchp
soundcore
intel_gtt
mei_me
lpc_ich
i2c_algo_bit
mei
i2c_core
battery
ac
wmi
button
video
processor
vboxnetflt
vboxnetadp
vboxdrv
ext4
crc16
mbcache
jbd2
sd_mod
sr_mod
crc_t10dif
cdrom
crct10dif_common
atkbd
libps2
ahci
libahci
libata
scsi_mod
xhci_hcd
ehci_pci
sdhci_pci
ehci_hcd
sdhci
led_class
mmc_core
usbcore
usb_common
i8042
serio
!!Sysfs Files
/sys/class/sound/hwC0D0/init_pin_configs:
0x12 0x411111f0
0x14 0x99130110
0x17 0x411111f0
0x18 0x03a19820
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x99a30930
0x1d 0x598301f0
0x1e 0x411111f0
0x21 0x0321101f
/sys/class/sound/hwC0D0/driver_pin_configs:
/sys/class/sound/hwC0D0/user_pin_configs:
/sys/class/sound/hwC0D0/init_verbs:
/sys/class/sound/hwC0D0/hints:
/sys/class/sound/hwC0D3/init_pin_configs:
0x05 0x18560010
0x06 0x58560020
0x07 0x58560030
/sys/class/sound/hwC0D3/driver_pin_configs:
/sys/class/sound/hwC0D3/user_pin_configs:
/sys/class/sound/hwC0D3/init_verbs:
/sys/class/sound/hwC0D3/hints:
!!ALSA/HDA dmesg
[ 2.804467] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 2.804893] snd_hda_intel 0000:00:1b.0: irq 47 for MSI/MSI-X
[ 2.809383] [drm] Memory usable by graphics device = 2048M
[ 2.809500] Console: switching to colour dummy device 80x25
[ 2.822857] hda_codec: ALC269VB: SKU not ready 0x598301f0
[ 2.825609] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input11
[ 2.837175] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
[ 2.837341] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
[ 2.837432] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[ 2.875879] i915 0000:00:02.0: irq 48 for MSI/MSI-X
[ 12.378034] 3:2:3: cannot get freq at ep 0x1
[ 12.415236] usbcore: registered new interface driver snd-usb-audio
[ 12.574045] usb 4-1.4.1: new full-speed USB device number 5 using ehci-pci
[21894.981516] tg3 0000:02:00.0: System wakeup disabled by ACPI
[21894.981666] snd_hda_intel 0000:00:1b.0: irq 47 for MSI/MSI-X
[21894.982611] ath: phy0: ASPM enabled: 0x42
A frickload of kudos to anybody that will either be able to recommend an alternative mixer (without having to install OSS/Pulse) or be able to link or recommend a fix.
Kind regards,
MastermindSo I just spent another couple of hours battling with alsa.
I went from sound but no mixer, to no sound at all. And then back to having sound again after 4 hours of command mashing. All that after just a weekend in suspend/standby.
The only difference I could detect was that the subdevice on the card changed, but simply defining (and alsa restoring) that one in the ~/.asoundrc did not do the trick.
I also came across a more detailed error with the crashing alsamixer.
/usr/share/alsa/init/default:171: value write error: Invalid argument
/usr/share/alsa/init/default:185: value write error: Invalid argument
Commenting these lines did not fix the error.
Some more outputs:
[root@Blitz mastermind]# alsactl restore
No state is present for card Headset
Found hardware: "USB-Audio" "USB Mixer" "USB1038:1216" "" ""
Hardware is initialized using a generic method
/usr/share/alsa/init/default:171: value write error: Invalid argument
/usr/share/alsa/init/default:185: value write error: Invalid argument
No state is present for card Headset
systemctl -l status alsa-restore.service
alsa-restore.service - Restore Sound Card State
Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
Active: inactive (dead) since Thu 2014-05-08 10:30:47 UTC; 3 days ago
Process: 192 ExecStart=/usr/bin/alsactl restore (code=exited, status=19)
Main PID: 192 (code=exited, status=19)
May 08 10:30:47 Blitz alsactl[192]: /usr/bin/alsactl: load_state:1729: No soundcards found...
$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=PCH
HDA Intel PCH, ALC269VB Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VB Analog
Front speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VB Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VB Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VB Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VB Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VB Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
sysdefault:CARD=Headset
SteelSeries SC2 USB Headset, USB Audio
Default Audio Device
front:CARD=Headset,DEV=0
SteelSeries SC2 USB Headset, USB Audio
Front speakers
surround40:CARD=Headset,DEV=0
SteelSeries SC2 USB Headset, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Headset,DEV=0
SteelSeries SC2 USB Headset, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Headset,DEV=0
SteelSeries SC2 USB Headset, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Headset,DEV=0
SteelSeries SC2 USB Headset, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Headset,DEV=0
SteelSeries SC2 USB Headset, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Headset,DEV=0
SteelSeries SC2 USB Headset, USB Audio
IEC958 (S/PDIF) Digital Audio Output
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headset [SteelSeries SC2 USB Headset], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
This is what I have in /etc/modprobe.d/alsa.conf :
options snd-hda-intel model=generic
options snd-usb-audio model=generic
.asoundrc for root
# ALSA library configuration file
# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
</root/.asoundrc.asoundconf>
audio_output {
type "alsa"
name "My ALSA Device"
card 1
# device "hw:1,1" # optional
mixer_control "mpd" # optional
pcm.!default {
type hw
card 1
ctl.!default {
type hw
card 1
for my user:
# ALSA library configuration file
# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
</home/mastermind/.asoundrc.asoundconf>
pcm.!default {
type hw
card 1
ctl.!default {
type hw
card 1
More:
ls -l /dev/snd
total 0
drwxr-xr-x 2 root root 60 May 12 10:25 by-id
drwxr-xr-x 2 root root 80 May 12 10:25 by-path
crw-rw----+ 1 root audio 116, 7 May 8 10:30 controlC0
crw-rw----+ 1 root audio 116, 10 May 12 10:25 controlC1
crw-rw----+ 1 root audio 116, 6 May 8 10:30 hwC0D0
crw-rw----+ 1 root audio 116, 5 May 8 10:30 hwC0D3
crw-rw----+ 1 root audio 116, 4 May 8 10:30 pcmC0D0c
crw-rw----+ 1 root audio 116, 3 May 8 10:46 pcmC0D0p
crw-rw----+ 1 root audio 116, 2 May 8 10:30 pcmC0D3p
crw-rw----+ 1 root audio 116, 9 May 12 10:25 pcmC1D0c
crw-rw----+ 1 root audio 116, 8 May 12 10:25 pcmC1D0p
crw-rw----+ 1 root audio 116, 1 May 8 10:30 seq
crw-rw----+ 1 root audio 116, 33 May 8 10:30 timer
lsmod | grep '^snd' | column -t
snd_usb_audio 118323 2
snd_usbmidi_lib 19756 1 snd_usb_audio
snd_rawmidi 18742 1 snd_usbmidi_lib
snd_seq_device 5180 1 snd_rawmidi
snd_hda_codec_hdmi 36588 1
snd_hda_codec_realtek 46566 1
snd_hda_codec_generic 53211 1 snd_hda_codec_realtek
snd_hda_intel 37704 0
snd_hda_codec 99871 4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hwdep 6332 2 snd_usb_audio,snd_hda_codec
snd_pcm 79815 5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_timer 18718 1 snd_pcm
snd 59286 17 snd_hda_codec_realtek,snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device
restore alsa:
alsactl restore
No state is present for card Headset
Found hardware: "USB-Audio" "USB Mixer" "USB1038:1216" "" ""
Hardware is initialized using a generic method
/usr/share/alsa/init/default:171: value write error: Invalid argument
/usr/share/alsa/init/default:185: value write error: Invalid argument
No state is present for card Headset
# cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xc0700000 irq 47
1 [Headset ]: USB-Audio - SteelSeries SC2 USB Headset
SteelSeries SteelSeries SC2 USB Headset at usb-0000:00:1d.0-1.2, full speed
# cat /proc/asound/modules
0 snd_hda_intel
1 snd_usb_audio
Let me know if I can provide any more information.
Last edited by Mastermind (2014-05-12 09:54:11) -
Hi everyone,
I have seen many topics about this problem but none of them helped and they seem to date a little bit so I would like to ask again.
here is the situation :
we have two iphone 4 in the house and everything was going fine until we did the update to the new 5.0 firmware. there was no problem while the update had only been applied to the first iphone... but after updating the second one, we now have the same problem on both iphones. We can still connect to the internet from the iphone just fine but the connection is erratic at best with the itunes store because we keep getting cut by this dreaded error message "connection to the itunes store impossible, "invalid argument" occasionnally we'd get a different message that says "connection reset by peer"
- what is invalid argument mean anyway???
- I have tried to renew the lease in the network settings, it didn't work
- I have tried to reset the network setting, it didn't help
- I have checked in the network setting for the IP address, it starts with 192.xx.xx..... which is supposed to be a good thing as opposed to 162.xx.xx....
- I have reset my router, nothing happened...
- I have tried unauthorising my computer to any accounts because we were afraid that using two iphones with two different itunes store accounts one the same computer may have caused these problems.. but no luck
I am running out of ideas, I would like to renew my frustration to apple because we buy these expensive products and still seem to suffers from stupid bugs... I was under the impression that these things were tested !!! anyway if anyone has found a definitive solution to this problem (short of burning your iphone out of anger) it would be deeply appreciated.
thxHi!
I'm also using Air SDK 15 and I'm getting Invalid Bundle Error:
Adobe Air iOS Invalid Bundle
The bundle does not support the minimum version os specified in info.plisthttp://stackoverflow.com/questions/26047837/adobe-air-ios-invalid-bundle-the-bundle-does-n ot-support-the-minimum-version-os
Really need help
Michael -
Disk Utility create image error - "Invalid Argument" - on USB drive.
I wanted to use a USB 2.0 drive that I share with a Windows machine to backup my son's iBook. I divided the drive into two partitions and formatted the iBook backup partition as FAT32. I attempted to create a read-only disk image on the USB drive in order to backup the iBook, but it does not complete successfully - it terminates with an "Invalid Argument" error. I also tried creating a read/write disk image and that terminates with an error "File or Folder not found." Anyone have any tips or clues as to what may be the problem?
iBook Mac OS X (10.4.3)I figured out my problem to some extent. I was not creating an empty image, but was trying to create a disk image without selecting a folder. Once I selected create an empty image from the File menu I did not get the error and was able to create an empty image on the USB drive.
-
Couldn't export schema because of invalid argument value and other errors.
Hello, All.
I am using an oracle 10g database, which is running on a Redhat9 linux server, to manage our lab information.
I plan to export a schema (only tables, not the real data) into a file.
First, I used the Enterprise Manager to export. I went through and complete the export job. After submitting, the system says:
There is a problem writing to the export files: ORA-39094: Parallel execution not supported in this database edition..
So I just copy the PL/SQL code which would be send to the source database and comment the set_parallel procedure.
The code is listed here:
declare
h1 NUMBER;
begin
begin
h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'EXPORT000468', version => 'COMPATIBLE');
end;
--begin
--dbms_datapump.set_parallel(handle => h1, degree => 1);
--end;
begin
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_FILE_DIR', filetype => 3);
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
end;
begin
dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''FLOWLIMS'')');
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
end;
begin
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U.DMP', directory => 'DATA_FILE_DIR', filetype => 1);
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
end;
begin
dbms_datapump.data_filter(handle => h1, name => 'INCLUDE_ROWS', value => 0);
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
end;
begin
dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
end;
begin
dbms_datapump.detach(handle => h1);
end;
end;
I paste the code in an SQL*Plus session and execute it. The system says:
declare
ERROR at line 1:
ORA-39001: invalid argument value
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2486
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2718
ORA-06512: at line 23
I am not very sure which part is wrong for I have exported another schema successfully using this method just now.
Any advice is highly appreciated!
QianWell, I will list more details about how to complete the job here.
1) Go to the Enterprise Manager, log in as FLOWLIMS (I just want to export the schema FLOWLIMS)
2)Go to the "Maitenance"
3)Under the "Utilities", select the "Export to files"
4)in the next page: Export: Export Type, select "Schemas"
5) in the next page, select the schema "FLOWLIMS"
6) in the next page, select these parameters:
Maximam Number of Threads in Export job: 1
Estimate Disk Space: Blockes
7) when I click the "Estimate Disk Space Now", it says :
Export Estimate Failed
There is a problem writing to the export files: ORA-39094: Parallel execution not supported in this database edition..
8) So I give up extimating
9) Other options:
I select "Generate Log file"
The Directory Object is the default value "DATA_FILE_DIR"
The Log File is the default value "EXPDAT.LOG"
10) the advanced options are like these:
Content: What to export from the Source Database: "Metadata only"
Export content: "include all objects"
Flashback: select "As the specified System Change Number (SCN)
SCN: just accept the default number 28901412
Query: select nothing. I need all fields of all tables.
11) in the next page, I accept the default directory object "DATA_FILE_DIR" and the default File Name "EXPDAT%U.DMP". The Maximam File Size is blank, I just leave it blank.
12) in the next page "Schedule" , I select to start the job immediatly.
13) in the next page "Review", it shows:
Export Type Schemas
Statistics type Estimate optimizer statistics when data is imported
Parallelism 1
Files to Export DATA_FILE_DIR EXPDAT%U.DMP
Log File DATA_FILE_DIR EXPDAT.LOG
and the PL/SQL is like that:
declare
h1 NUMBER;
begin
begin
h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'EXPORT000487', version => 'COMPATIBLE');
end;
begin
dbms_datapump.set_parallel(handle => h1, degree => 1);
end;
begin
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_FILE_DIR', filetype => 3);
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
end;
begin
dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''FLOWLIMS'')');
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
end;
begin
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U.DMP', directory => 'DATA_FILE_DIR', filetype => 1);
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
end;
begin
dbms_datapump.data_filter(handle => h1, name => 'INCLUDE_ROWS', value => 0);
end;
begin
dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
end;
begin
dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
end;
begin
dbms_datapump.detach(handle => h1);
end;
end;
14) after I click the "submit" , it shows:
Export Submit Failed
There is a problem writing to the export files: ORA-39094: Parallel execution not supported in this database edition..
15) I copy the PL/SQL, comment this part:
--begin
--dbms_datapump.set_parallel(handle => h1, degree => 1);
--end;
I run it in an iSQL*Plus Release 10.1.0.2,
It shows:
declare
ERROR at line 1:
ORA-39001: invalid argument value
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2486
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2718
ORA-06512: at line 23
Could anybody help? Thanks a lot!
Qian -
T61 keeps poping up 'An invalid argument was encountered.' dialog
Just since this week, my T61 started poping up very annoying dialog titled ' Power Manager Gauge', which was saying: An invalid argument was encountered. I don't know where this problem come from as T61 works fine since I bought it in Oct. 2007. Could anyone tell me (or give me a hint) what this problem is and where I can find the solution?
My computer system info is as following:
System Make: ThinkPad T61 8897CTO
OS: Windows Vista SP2 en-us
RAM: 2GB
Battery: 6 cell battery
ThinkVantage software: All updated to the latest via ThinkVantage System Update
Installed software: Adobe Acrobat 9 Pro Extended, Adobe Photoshop CS4, MS Office Enterprise 2007...
Your help will be greatly appreciated.I'm having the same problem on my T61. It just recently started to happen. It seems to occur randomly and anytime that I try to access the Thinkpad Power Manager. I'll try to uninstall the Thinkpad Power Manager program and download and reinstall it. I never had the problem while running Vista 64-bit, and it only recently started while running Win7 64-bit. I'll let you know what happens after reinstallation.
UPDATE: I uninstalled and reinstalled the Thinkpad Power Manager and, after the required restart, all is back to normal with no more irritating '...invalid argument...' messages. -
Oracle.jms.AQjmsException: invalid arguments in call
Hi
Has anyone seen this error before?
Environment Configuration:
APP SERVER 9.0.4 (OUT 0F BOX CONFIG)
JDK 1.4
RED HAT ENTERPRISE SERVER 3.0
COMPAC DL380
ON VM SOFTWARE
DB 9.2.0.4
HP-UX 11i
SUPERDOME
Error logs:
[18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.pool.QueueConnectionPool]
[getQueueConnection] :Using pooled queue connection for factory:
java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB
[18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.pool.QueueSessionPool]
[createQueueSession] :Failed to create queue session: oracle.jms.AQjmsException: invalid arguments in call
[18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.common.jms.BytesMessageWriter]
[writeBytesMessage] :Failed to write message onto queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue
factory: java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in call
[18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.sil.common.log.silInteractionLogger] [log]
:silInteractionLogger.log() Exception writing ServiceExecutionRecord to JMS queue: bcc.sde.common.exception.SDEException:
Failed to write message onto queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue factory:
java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in
call: QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments
in call;
---> nested: bcc.sde.common.jms.pool.JMSPoolException: QueueSessionPool.createQueueSession() failed to create queue
session - oracle.jms.AQjmsException: invalid arguments in call
[18-06-04 10:27:20] [AJPRequestHandler-ApplicationServerThread-137] - [bcc.sde.sil.bids.api.sql.BidsSQLInterface]
[logInteractionRecord] :Failed to log interaction record: bcc.sde.common.exception.SDEException: silInteractionLogger.log()
Exception writing ServiceExecutionRecord to JMS queue: bcc.sde.common.exception.SDEException: Failed to write message onto
queue: java:comp/resource/SDEJMS/Queues/SDEDEV_LOGQUEUE using queue factory:
java:comp/resource/SDEJMS/QueueConnectionFactories/SDEQUEUETAB - bcc.sde.common.jms.pool.JMSPoolException:
QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments in
call: QueueSessionPool.createQueueSession() failed to create queue session - oracle.jms.AQjmsException: invalid arguments
in call;
---> nested: bcc.sde.common.jms.pool.JMSPoolException: QueueSessionPool.createQueueSession() failed to create queue
session - oracle.jms.AQjmsException: invalid arguments in call
Database error with same error message:
ORA-17433 - invalid arguments in call
http://www.doc.gold.ac.uk/oracle/doc/java.817/a83724/ermesap3.htm
Code causing problem:
queueConnection = queueConnectionPool.getQueueConnection(queueConnectionFactoryName, runningExternal);
queueSession = queueConnection.createQueueSession(TRANSACTIONAL, AUTO_ACK_MODE);I am facing the same problem. Have you figured out what the cause was? Thanks,
-
TS1368 " Cannot connect to I Tunes store. Invalid argument "
Using iPhone mobile:
When I tried to update an App, listed by the AppStore App, as needing an update, I received this pop-up message: "Cannot connect to ITunes Store. invalid argument."
What might I do to correct the problem?
• I have created a new password,
• I have shut down and restarted the App
• I have shut down and restarted my iPhone,
• I have been told to log in to ITunes Store but don't know how.
Baffled and needing guidance.
PapaNeufYou can look through Apple's support article that addresses this issue.
http://support.apple.com/kb/TS1368
This "fix" was working for some users recently.
Go to Settings>General>Date and Time>Set Automatically>Off. Set the date one year ahead. Try to update the apps again. If you get an error message, go back to the settings. Correct the date and time (set automatically) then go back and try to update the apps again. -
ORA-27102: out of memory SVR4 Error: 22: Invalid argument
Hi all,
I'm doing an install of a Solaris 10.2, Oracle 10.2 system. During the Create Database phase, I am getting;
ORA-27102: out of memory SVR4 Error: 22: Invalid argument
Doing some research, and reading through the details here:
Link: [http://technopark02.blogspot.com/2006/09/solaris-10oracle-fixing-ora-27102-out.html]
I think my issue is my SHM parameters, reinforced by the repeated entry in the Oracle Alert log:
+WARNING: EINVAL creating segment of size 0x0000000085000000+*
+fix shm parameters in /etc/system or equivalent+*
when the create fails.
I am not familar with Solaris' new project mechanism, although from what I have read, it seems to be set up properly.
Here are my server details:
# prtconf | grep Mem
Memory size: 8192 Megabytes
# prctl -n project.max-shm-memory -i project 200
project: 200: QBI
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 10.0EB - deny -
system 16.0EB max deny -
And as for Oracle:
shared_pool_size = 1522029035
shared_pool_reserved_size = 152202903
pga_aggregate_target = 2705829396
sga_max_size = 3439329280
db_cache_size = 1159641169
During the course of troubleshooting, I have:
1 - Increased the amount of SHM allocated in the project. I have tried 16GB, 8 GB, 10 GB, 11GB etc, to no effect, so I reset it to 10GB (as seen above) and focused my efforts elsewhere.
2. SHARED_POOL_SIZE - I have decreased this by roughly 75% from the original value, again to no effect.
3. PGA and SGA sizes - I have increased these from the original values by an increment of 25%
Following the advice from the referenced blog (which does a good job of explaining the logic behind the actions) I have determined that the Alert log error message is telling me that it is lacking
2231369728
(Hex conversion value, which I think I need to read as 2GB, not 100% sure)
I've increased my project allocation, and the PGA sizes, did I just not do it enough?
Any advice?
Thanks for any input,
Troy ShaneHi,
check following sap note
Note 546006 - Problems with Oracle due to operating system errors
Note 743328 - Composite SAP note: ORA-27102
regards,
kaushal -
Post Author: vpost
CA Forum: Data Connectivity and SQL
I am trying to join information from two related web services within CR XI. I have successfully set up the web services as data sources have been able to get to the point where I get good data back. However, when I try to pull in certain fields, I get an error that says "Failed to retrieve data from the database/invalid argument provided". Here's the scenario:
The web services are structured as follows:Web Service 1 (Artist) has attributes of Artist Name and Date of Birth.Web Service 2 (CD) has attributes of CD Title and Release Date. Underneath each CD are songs, each of which have a Song Title and Artist Name.
I have defined both web services and defined a link between Artist.Artist Name and CD/Song.Artist Name. I am able to run a report with Song Title and Date of Birth that crosses web services. I am able to run another report with Song Title and CD Title that crosses the different levels in the second web service. However, if I add CD Title to the first report or Date of Birth to the second (both of which effectively force CR to employ the link between the two web services AND the CD/Song hierarchical structure in the second web service, I get the aforementioned error.
Any assistance understanding how multiple web services can be linked in this manner would be greatly appreciated.
Thanks in advance.Post Author: Mike Wright
CA Forum: Data Connectivity and SQL
Not sure about your exact situation, but having similar problem with another application and have tracked down to security. Added user to group Domain Admin and it works fine. It appears to be accessing a subdirectory which it does not have permission to use and then times out and returns the "invalid....". Seems that once the query just over a certain size (and I'm not sure what triggers this) it needs to make use of temparory file disk, intead of ram.
I'm still trying to track down which temporary it's trying to uses - so if you have any ques.
cheers -
PosixSocketMuxer: unexpected exception in poll: (22) Invalid argument
I'm running JDeveloper 12.x using WLS 12.1.1.0.0. The server starts fine, but when I launch the WLS console, the web browser appears (deploying WLS console...) then goes blank. The WLS console has repeated this exception:
<Oct 10, 2011 6:03:32 PM MDT> <Error> <Socket> <BEA-000421> <Uncaught Throwable in processSockets
java.io.IOException: unexpected exception in poll: (22) Invalid argument.
java.io.IOException: unexpected exception in poll: (22) Invalid argument
at weblogic.socket.PosixSocketMuxer.poll(Native Method)
at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:106)
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
Truncated. see log file for complete stacktrace
I'm running Mac OS 10.6.7 in 64-bit mode.
There is no additional stack trace information in the server or the default domain log.
Is there any way around this? Can I edit something in config.xml or startWebLogic.sh as a workaround?Some notes concerning running WebLogic on Max OS are presented, maybe they help - http://blogs.oracle.com/wahmed/entry/installing_weblogics_10_3_1
Looking at the error "java.io.IOException: unexpected exception in poll: (22) Invalid argument at weblogic.socket.PosixSocketMuxer.poll(Native Method)"
which is related to the socket muxer. By default, a native socket muxer is used - could be this is not working on MAC.
What you can try to do is enable the Java based muxer, by editing the config.xml, for example,
<server>
<name>AdminServer</name>
<reverse-dns-allowed>false</reverse-dns-allowed>
<native-io-enabled>false</native-io-enabled>
<thread-pool-percent-socket-readers>33</thread-pool-percent-socket-readers>
<ssl>
<login-timeout-millis>25000</login-timeout-millis>
</ssl>
<max-open-sock-count>-1</max-open-sock-count>
<stuck-thread-max-time>600</stuck-thread-max-time>
<stuck-thread-timer-interval>60</stuck-thread-timer-interval>
<gathered-writes-enabled>false</gathered-writes-enabled>
<scattered-reads-enabled>false</scattered-reads-enabled>
<listen-address></listen-address>
<accept-backlog>300</accept-backlog>
<login-timeout-millis>5000</login-timeout-millis>
<low-memory-time-interval>3600</low-memory-time-interval>
<low-memory-sample-size>10</low-memory-sample-size>
<low-memory-granularity-level>5</low-memory-granularity-level>
<low-memory-gc-threshold>5</low-memory-gc-threshold>
</server>The native-io-enabled element controls is the native muxer is enabled or not.
The thread-pool-percent-socket-readers element tells how may threads from the execute queue
are used by the muxer; the default is 33%. -
NIO - Invalid argument (errno:22)
We have a mutlthreaded framework that spawns many individual threads with each merging extremely large files (1-3GB) to their own [thread] seperate files. We are using Java 1.4.2.10 and running on HP-UX.
The following is the bit of code that does our appending:
FileInputStream fileInputStream = new FileInputStream(fileName);
FileChannel in = fileInputStream.getChannel();
fileChannel.transferFrom(in, fileChannel.size(), in.size());
in.close();
fileInputStream.close();Now the grave issue that we have is that occasionaly we get the following "Invalid argument" error being thrown without any given specific reason. This error is not necessarily reproducable every time.
java.io.IOException: Invalid argument (errno:22)
at sun.nio.ch.FileChannelImpl.map0(Native Method)
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:876)
at sun.nio.ch.FileChannelImpl.transferFromFileChannel(FileChannelImpl.java:535)
at sun.nio.ch.FileChannelImpl.transferFrom(FileChannelImpl.java:598)Any insight on this error (being an existing bug, etc) would be most useful.Can you expand on the reason why you have chosen to
transfer 1MB at a time? Won't this have a performance
impact when transfering a 100MB file (we loop through
it 100 times as opposed to once).Have a think about how long it takes to transfer a megabyte and how long it takes to execute two or three lines of loop bookkeeping code 100 times, and you will see that the 'overhead' is negligible. The loop will spend 99% of its time transferring and 1% looping. Probably the true ratio is even more extreme.
In any case you don't have a choice but to reduce the transfer chunk considerably. It's up to you to find the optimum for your hardware, O/S, files, disk drives, etc.
The other question that I am really interested to
know the answer for, is why is thsi error being
thrown?That's been explained above in replies #1 and #2. You agreed with it yourself in reply #3.
Why do you suggest changing the copy size out of all things?Err, because that's what causes the error? As in replies #1, #2, and #3? -
I'm working on my first HTML5 site. And I'm getting an invalid argument error that's keeping it from loading all of the content on the page. It's telling me that the error is in line 256, but line 256 is an image tag.
The page in question is here:
http://jerauf.com/filmggp/locations-sub.html
I'm thinking that it's a script but can't tell what the problem is.
Can anyone help?Hello.
<img src="image.jpg" height="120" width="120" alt="description" /> -
Socket Exception Invalid argument create on Windows service in process mode
Please help , Iam getting SocketException Error on connecting with mysql using jdbc also when connect to Activemq jms. Strange thing is this is only
happening on Windows Server(2008) and when i run the application as Windows service with 'jvm' (in-process) option. Program can connect
when i run as Java exe in the Windows Service.
Java JDK version - jdk1.6.0_26.
Thanks in advance, please ask if any more info needed.
-- mysql connect--
Database Driver="com.mysql.jdbc.Driver" Host="jdbc:mysql://localhost:3306/mydb?useUnicode=true&characterEncoding=UTF8" User="admin" Password="password"
Java.net.SocketException
MESSAGE: Invalid argument: create
STACKTRACE:
java.net.SocketException: Invalid argument: create
at java.net.Socket.createImpl(Socket.java:397)
at java.net.Socket.<init>(Socket.java:371)
at java.net.Socket.<init>(Socket.java:189)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:124)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:225)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1779)
at com.mysql.jdbc.Connection.<init>(Connection.java:450)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at myapp.JDBCLoader.JDBCConnect(JDBCLoader.java:129)
----on activemq connect ---
javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616?connectionTimeout=0&keepAlive=true&wireFormat.maxInactivityDuration=0. Reason: java.net.SocketException: Invalid argument: create
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:286)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230)
at org.apache.activemq.ActiveMQConnectionFactory.createQueueConnection(ActiveMQConnectionFactory.java:193)
at sen.connector.queue.ConnectionFactory.createQueueConnection(ConnectionFactory.java:60)
at sen.connector.queue.ConnectionFactory.createQueueConnection(ConnectionFactory.java:36)
at sen.connector.queue.HostConnection.connectToHost(HostConnection.java:147)
at sen.connector.queue.HostConnection.run(HostConnection.java:127)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.SocketException: Invalid argument: create
at java.net.Socket.createImpl(Socket.java:397)
at java.net.Socket.connect(Socket.java:527)
at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:484)
at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:447)
at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
at org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:127)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:266)
Edited by: 891207 on Oct 12, 2011 8:14 PM
Edited by: 891207 on Oct 12, 2011 8:17 PMI'm sure that exception can be caused by the firewall.The exception below is what is caused by a firewall. Anyway the OP said that it worked fine running as a windows service, so that would rule-out a firewall. Also connections to 'localhost' don't go through the firewall.
Expecting people to know that 'try a different JVM' I already explained that
my initial diagnosis was incorrectHave a nice day.
- Mike
java.sql.SQLException: IO Error: The Network Adapter could not establish the connection
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:512)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
554)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:232)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:28)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:553)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at JDBCTest4.main(JDBCTest4.java:53)
Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:388)
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:430)
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:871)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:264)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1598)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:360)
... 7 more
Caused by: java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:146)
at oracle.net.nt.ConnOption.connect(ConnOption.java:129)
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:366)
Maybe you are looking for
-
help me
-
Flat file with different layouts in a single file
Hello Friends, Good Morning. I am new to ODI - Oralce Data Integrator 11G. I have a flat file where I had to load the flat file data to a oracle DB ( 11G ). The flat file has 5 different layouts ( Data of 5 different suppliers coming as a single file
-
How to create multiprovider in BI 7.0 using two cubes
Hi all, how to create multiprovider in BI 7.0 using two cubes?
-
How to update resource content (XML Versioning)
Hi, How to update resource content in the resource_view? I am trying to use XML Versioning. And not able to update the resource content using PL/SQL. Upon executing update, sql prompt says 1 row updated, but when I extract the same resource, it retur
-
Xml files deployment in a jsp application
I have a xml file and i want to read it in a jsp file.I use some java classes to read the xml file.I use DOM. In the jsp file i'm calling a function from a clas that returns a vector with elements from the xml file. Problem:If the same function is ca