Too Many Panics - Lots of Java Errors - Re-installed Safari
My stable-since-I-bought-her-new-in-2007 1.83GHz Intel Core Duo 2GB Apple RAM started to panic crash all the time on me recently. But only during/after running Safari. Repairing Disk Permissions showed a lot of "javascript" errors ...
I un-installed Safari. And re-installed from the copy at the Apple Support site. Tremendous improvement in overall performance.
I am not sure what caused my problem. I was only using one authorized plug-in. And I have had no similar problems on my 17" MacBook Pro from late 2006.
But I am back to feeling productive again with my mini!
THANKS to those who took the time to read my Panic reports last week.
Clint Bradford
Hi Clemens,
- Do you have any idea why "TOP" utility shows me RAM is being consumed almost 99%. I have gone through the different processes that are running in the server, but didnt find any of them which are not consuming even all together a total of 100-150MB of RAM.
- We have only tomcat server running in it, no other applicatoin not even DB server.
- I have installed the same application in our testing server which is setup in the same lines. There I find only single thread of JAVA and consuming around the same memory and the TOP utility shows us OUR SERVER RAM still having 50% of memory free. The only difference here is the JVM which is 1.4.1_01-b01. In our production server (server I mentioned earlier) is having JVM 1.4.2_06-b03.
Why do think is this difference? Is it because of JVM or some misconfiguration?
Regards
Similar Messages
-
Kernel Panic in 10.6.3 after Installing Safari 5
I have had my second Kernel Panic in 10.6.3 after installing Safari 5. The first one occurred within 3 hours of installing Safari 5. The second occurrence was 7 days later. Both crashes occurred while browsing in Safari. I have included my system info and the panics:
Model Name: MacBook Pro
Model Identifier: MacBookPro3,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.6 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 4 MB
Memory: 6 GB
Bus Speed: 800 MHz
Boot ROM Version: MBP31.0070.B07
SMC Version (system): 1.18f5
Serial Number (system): W8750*XA9
Hardware UUID: 00000000-0000-1000-8000-001EC200CD25
Sudden Motion Sensor:
State: Enabled
Interval Since Last Panic Report: 2940365 sec
Panics Since Last Report: 1
Anonymous UUID: DB756B08-C35C-444B-B0A4-89BC538C3596
Tue Jun 8 22:46:50 2010
panic(cpu 1 caller 0x2269e4): "thread_invoke: preemption_level -1, possible cause: unlocking an unlocked mutex or spinlock"@/SourceCache/xnu/xnu-1504.3.12/osfmk/kern/sched_prim.c:1471
Backtrace (CPU 1), Frame : Return Address (4 potential args on stack)
0x7fdd3e28 : 0x21b449 (0x5ce420 0x7fdd3e5c 0x2238a5 0x0)
0x7fdd3e78 : 0x2269e4 (0x585e1c 0xffffffff 0x585db4 0x2262a8)
0x7fdd3ef8 : 0x2270ea (0xaf7901c 0x11cc 0x7fdd3f28 0x0)
0x7fdd3f68 : 0x219096 (0x29e695 0x0 0x1 0x4ec9dc)
0x7fdd3fa8 : 0x2a7a07 (0xffffffff 0x1 0x29f42f 0xadb92e4)
0x7fdd3fc8 : 0x29e8a6 (0x0 0x1 0x10 0xadb92e4)
BSD process name corresponding to current thread: mDNSResponder
Mac OS version:
10D573
Kernel version:
Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386
System model name: MacBookPro3,1 (Mac-F42388C8)
System uptime in nanoseconds: 19570068272057
unloaded kexts:
com.cisco.nke.ipsec 2.0.1 (addr 0x7f9f2000, size 0x454656) - last unloaded 41163749814
loaded kexts:
com.cisco.nke.ipsec 2.0.1
com.vmware.kext.vmnet 3.0.0
com.vmware.kext.vmioplug 3.0.0
com.vmware.kext.vmci 3.0.0
com.vmware.kext.vmx86 3.0.0
foo.tap 1.0
foo.tun 1.0
com.pctools.iantivirus.kfs 1.0.1
se.coolbook.driver2 2.1.0
com.apple.driver.StorageLynx 2.5.3
com.apple.driver.Oxford_Semi 2.5.3
com.apple.driver.LSIFW500 2.5.3
com.apple.driver.IOFireWireSerialBusProtocolSansPhysicalUnit 2.5.3
com.apple.driver.initioFWBridge 2.5.3
com.apple.driver.AppleHWSensor 1.9.3d0
com.apple.filesystems.autofs 2.1.0
com.apple.driver.IOBluetoothSCOAudioDriver 2.3.1f4
com.apple.driver.IOBluetoothBNEPDriver 2.3.1f4
com.apple.driver.InternalModemSupport 2.6.2
com.apple.driver.AppleTyMCEDriver 1.0.1d8
com.apple.driver.AudioAUUC 1.4
com.apple.DontSteal_Mac_OSX 7.0.0
com.apple.iokit.CHUDUtils 201
com.apple.driver.AppleIntelYonahProfile 14
com.apple.iokit.CHUDProf 216
com.apple.driver.AppleUpstreamUserClient 3.3.2
com.apple.driver.AppleIntelPenrynProfile 17.1
com.apple.driver.AppleGraphicsControl 2.8.56
com.apple.GeForce 6.1.0
com.apple.driver.AppleIntelNehalemProfile 11.1
com.apple.driver.AppleHDA 1.8.4fc3
com.apple.driver.AudioIPCDriver 1.1.2
com.apple.driver.AppleLPC 1.4.11
com.apple.driver.AppleBacklight 170.0.16
com.apple.driver.SMCMotionSensor 3.0.0d4
com.apple.iokit.AppleYukon2 3.1.14b1
com.apple.driver.AirPort.Atheros 422.19.10
com.apple.kext.AppleSMCLMU 1.5.0d1
com.apple.driver.AppleIntelMeromProfile 19.1
com.apple.driver.ACPISMCPlatformPlugin 4.1.1d0
com.apple.driver.AppleUSBTrackpad 1.8.1b1
com.apple.driver.AppleUSBTCKeyEventDriver 1.8.1b1
com.apple.driver.AppleUSBTCKeyboard 1.8.1b1
com.apple.driver.AppleIRController 303
com.apple.driver.CSRHIDTransitionDriver 2.3.1f4
com.apple.iokit.SCSITaskUserClient 2.6.2
com.apple.BootCache 31
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.driver.AppleIntelPIIXATA 2.5.1
com.apple.driver.AppleUSBHub 3.9.6
com.apple.driver.AppleEFINVRAM 1.3.0
com.apple.iokit.IOAHCIBlockStorage 1.6.1
com.apple.driver.AppleFWOHCI 4.5.7
com.apple.driver.AppleUSBEHCI 3.9.6
com.apple.driver.AppleRTC 1.3.1
com.apple.driver.AppleAHCIPort 2.1.1
com.apple.driver.AppleUSBUHCI 3.9.6
com.apple.driver.AppleHPET 1.5
com.apple.driver.AppleSmartBatteryManager 160.0.0
com.apple.driver.AppleACPIButtons 1.3.2
com.apple.driver.AppleSMBIOS 1.5
com.apple.driver.AppleACPIEC 1.3.2
com.apple.driver.AppleAPIC 1.4
com.apple.driver.AppleIntelCPUPowerManagementClient 104.3.0
com.apple.security.sandbox 0
com.apple.security.quarantine 0
com.apple.nke.applicationfirewall 2.1.11
com.apple.driver.AppleIntelCPUPowerManagement 104.3.0
com.apple.iokit.IOSCSIBlockCommandsDevice 2.6.2 - last loaded 352836556749
com.apple.iokit.IOFireWireSerialBusProtocolTransport 2.0.1
com.apple.driver.AppleUSBAudio 2.6.8fc1
com.apple.iokit.IOFireWireSBP2 4.0.6
com.apple.driver.AppleBluetoothHIDMouse 1.4.0d7
com.apple.driver.AppleHIDMouse 1.4.0d7
com.apple.driver.IOBluetoothHIDDriver 2.3.1f4
com.apple.driver.AppleHDAPlatformDriver 1.8.4fc3
com.apple.driver.AppleProfileReadCounterAction 17
com.apple.driver.AppleProfileTimestampAction 10
com.apple.driver.AppleProfileThreadInfoAction 14
com.apple.driver.AppleProfileRegisterStateAction 10
com.apple.driver.AppleProfileKEventAction 10
com.apple.driver.AppleProfileCallstackAction 20
com.apple.iokit.IOSurface 74.0
com.apple.iokit.IOBluetoothSerialManager 2.3.1f4
com.apple.iokit.IOSerialFamily 10.0.3
com.apple.driver.AppleHDAHardwareConfigDriver 1.8.4fc3
com.apple.iokit.CHUDKernLib 208
com.apple.driver.DspFuncLib 1.8.4fc3
com.apple.iokit.IOAudioFamily 1.7.6fc2
com.apple.kext.OSvKernDSPLib 1.3
com.apple.nvidia.nv50hal 6.1.0
com.apple.NVDAResman 6.1.0
com.apple.iokit.IONDRVSupport 2.1
com.apple.iokit.IOFireWireIP 2.0.3
com.apple.iokit.IO80211Family 310.6
com.apple.iokit.IONetworkingFamily 1.9
com.apple.driver.AppleSMC 3.0.1d2
com.apple.driver.IOPlatformPluginFamily 4.1.1d0
com.apple.driver.AppleHDAController 1.8.4fc3
com.apple.iokit.IOGraphicsFamily 2.1
com.apple.iokit.IOHDAFamily 1.8.4fc3
com.apple.iokit.AppleProfileFamily 41
com.apple.driver.CSRUSBBluetoothHCIController 2.3.1f4
com.apple.driver.AppleUSBBluetoothHCIController 2.3.1f4
com.apple.iokit.IOBluetoothFamily 2.3.1f4
com.apple.driver.AppleUSBHIDKeyboard 1.2.0a3
com.apple.iokit.IOUSBHIDDriver 3.9.6
com.apple.driver.AppleHIDKeyboard 1.2.0a3
com.apple.driver.AppleUSBMergeNub 3.9.6
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.2
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.6
com.apple.iokit.IOCDStorageFamily 1.6
com.apple.iokit.IOATAPIProtocolTransport 2.5.1
com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.2
com.apple.driver.XsanFilter 402.1
com.apple.driver.AppleFileSystemDriver 2.0
com.apple.iokit.IOATAFamily 2.5.1
com.apple.iokit.IOUSBUserClient 3.9.6
com.apple.driver.AppleEFIRuntime 1.3.0
com.apple.iokit.IOFireWireFamily 4.2.6
com.apple.iokit.IOAHCIFamily 2.0.3
com.apple.iokit.IOUSBFamily 3.9.6
com.apple.iokit.IOHIDFamily 1.6.2
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.TMSafetyNet 6
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 283
com.apple.iokit.IOStorageFamily 1.6
com.apple.driver.AppleACPIPlatform 1.3.2
com.apple.iokit.IOPCIFamily 2.6
com.apple.iokit.IOACPIFamily 1.3.0
System Profile:
Model: MacBookPro3,1, BootROM MBP31.0070.B07, 2 processors, Intel Core 2 Duo, 2.6 GHz, 6 GB, SMC 1.18f5
Graphics: NVIDIA GeForce 8600M GT, GeForce 8600M GT, PCIe, 256 MB
Memory Module: global_name
AirPort: spairportwireless_card_type_airportextreme (0x168C, 0x87), Atheros 5416: 2.0.19.10
Bluetooth: Version 2.3.1f4, 2 service, 19 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
PCI Card: pci168c,24, sppci_othernetwork, PCI Slot 5
Serial ATA Device: Hitachi HTS722020K9SA00, 186.31 GB
Parallel ATA Device: MATSHITADVD-R UJ-85J
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8502, 0xfd400000
USB Device: Hub, 0x0424 (SMSC), 0x2514, 0xfd100000
USB Device: Logitech Camera, 0x046d (Logitech Inc.), 0x09a6, 0xfd110000
USB Device: Keyboard Hub, 0x05ac (Apple Inc.), 0x1006, 0xfa400000
USB Device: Apple Keyboard, 0x05ac (Apple Inc.), 0x0220, 0xfa420000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x021a, 0x5d200000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x5d100000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8205, 0x1a100000
FireWire Device: FreeAgent FW, Seagate, Up to 800 Mb/sec
Interval Since Last Panic Report: 273926 sec
Panics Since Last Report: 1
Anonymous UUID: DB756B08-C35C-444B-B0A4-89BC538C3596
Tue Jun 15 09:22:00 2010
Machine-check capabilities (cpu 0) 0x0000000000000806:
family: 6 model: 15 stepping: 11 microcode: 179
Intel(R) Core(TM)2 Duo CPU T7800 @ 2.60GHz
6 error-reporting banks
threshold-based error status present
Machine-check status 0x0000000000000004:
machine-check in progress
MCA error-reporting registers:
IA32MC0STATUS(0x401): 0xb200004000000800 valid
MCA error code: 0x0800
Model specific error code: 0x0000
Other information: 0x00000040
Threshold-based status: No tracking
Status bits:
Processor context corrupt
Error enabled
Uncorrected error
IA32MC1STATUS(0x405): 0x0000000000000000 invalid
IA32MC2STATUS(0x409): 0x0000000000000000 invalid
IA32MC3STATUS(0x40d): 0x0020000000000000 invalid
IA32MC4STATUS(0x411): 0x0000000000000011 invalid
IA32MC5STATUS(0x415): 0xb200121014040400 valid
MCA error code: 0x0400
Model specific error code: 0x1404
Other information: 0x00001210
Threshold-based status: No tracking
Status bits:
Processor context corrupt
Error enabled
Uncorrected error
panic(cpu 0 caller 0x2a7c94): Machine Check at 0x0071dc4e, thread:0xb421b7c, trapno:0x12, err:0x0,registers:
CR0: 0x80010033, CR2: 0x78716000, CR3: 0x00100000, CR4: 0x000006e0
EAX: 0xb030abf4, EBX: 0x00176ec2, ECX: 0xb030ae6c, EDX: 0x03d89f00
ESP: 0xb030abb0, EBP: 0xb030abb8, ESI: 0x00000001, EDI: 0x00000000
EFL: 0x00010282, EIP: 0x0071dc4e
Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
0x819e18 : 0x21b449 (0x5ce420 0x819e4c 0x2238a5 0x0)
0x819e68 : 0x2a7c94 (0x590140 0x59022d 0x71dc4e 0xb421b7c)
0x819f58 : 0x29f912 (0x1 0x0 0x0 0x0)
BSD process name corresponding to current thread: AgentService
Mac OS version:
10D573
Kernel version:
Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386
System model name: MacBookPro3,1 (Mac-F42388C8)
System uptime in nanoseconds: 279587791547472
unloaded kexts:
com.cisco.nke.ipsec 2.0.1 (addr 0x7f163000, size 0x454656) - last unloaded 51756013224
loaded kexts:
com.cisco.nke.ipsec 2.0.1
com.vmware.kext.vmnet 3.0.0
com.vmware.kext.vmioplug 3.0.0
com.vmware.kext.vmci 3.0.0
com.vmware.kext.vmx86 3.0.0
foo.tun 1.0
foo.tap 1.0
com.pctools.iantivirus.kfs 1.0.1
se.coolbook.driver2 2.1.0
com.apple.filesystems.cddafs 2.4.3 - last loaded 38997901610284
com.apple.driver.AppleHWSensor 1.9.3d0
com.apple.filesystems.autofs 2.1.0
com.apple.driver.InternalModemSupport 2.6.2
com.apple.driver.AppleTyMCEDriver 1.0.1d8
com.apple.DontSteal_Mac_OSX 7.0.0
com.apple.iokit.CHUDUtils 201
com.apple.driver.AppleIntelYonahProfile 14
com.apple.iokit.CHUDProf 216
com.apple.driver.AudioAUUC 1.4
com.apple.driver.AppleIntelPenrynProfile 17.1
com.apple.driver.AppleUpstreamUserClient 3.3.2
com.apple.driver.IOBluetoothSCOAudioDriver 2.3.1f4
com.apple.driver.AppleIntelNehalemProfile 11.1
com.apple.driver.AppleHDA 1.8.4fc3
com.apple.driver.AudioIPCDriver 1.1.2
com.apple.driver.AppleGraphicsControl 2.8.56
com.apple.driver.IOBluetoothBNEPDriver 2.3.1f4
com.apple.GeForce 6.1.0
com.apple.driver.SMCMotionSensor 3.0.0d4
com.apple.iokit.AppleYukon2 3.1.14b1
com.apple.driver.AirPort.Atheros 422.19.10
com.apple.kext.AppleSMCLMU 1.5.0d1
com.apple.driver.AppleIntelMeromProfile 19.1
com.apple.driver.ACPISMCPlatformPlugin 4.1.1d0
com.apple.driver.AppleLPC 1.4.11
com.apple.driver.AppleBacklight 170.0.16
com.apple.driver.AppleUSBTrackpad 1.8.1b1
com.apple.driver.AppleUSBTCKeyEventDriver 1.8.1b1
com.apple.driver.AppleUSBTCKeyboard 1.8.1b1
com.apple.driver.AppleIRController 303
com.apple.driver.CSRHIDTransitionDriver 2.3.1f4
com.apple.driver.StorageLynx 2.5.3
com.apple.driver.Oxford_Semi 2.5.3
com.apple.driver.LSIFW500 2.5.3
com.apple.driver.IOFireWireSerialBusProtocolSansPhysicalUnit 2.5.3
com.apple.driver.initioFWBridge 2.5.3
com.apple.iokit.SCSITaskUserClient 2.6.2
com.apple.iokit.IOAHCIBlockStorage 1.6.1
com.apple.driver.AppleUSBHub 3.9.6
com.apple.BootCache 31
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.driver.AppleIntelPIIXATA 2.5.1
com.apple.driver.AppleUSBEHCI 3.9.6
com.apple.driver.AppleAHCIPort 2.1.1
com.apple.driver.AppleFWOHCI 4.5.7
com.apple.driver.AppleEFINVRAM 1.3.0
com.apple.driver.AppleUSBUHCI 3.9.6
com.apple.driver.AppleRTC 1.3.1
com.apple.driver.AppleHPET 1.5
com.apple.driver.AppleSmartBatteryManager 160.0.0
com.apple.driver.AppleACPIButtons 1.3.2
com.apple.driver.AppleSMBIOS 1.5
com.apple.driver.AppleACPIEC 1.3.2
com.apple.driver.AppleAPIC 1.4
com.apple.driver.AppleIntelCPUPowerManagementClient 104.3.0
com.apple.security.sandbox 0
com.apple.security.quarantine 0
com.apple.nke.applicationfirewall 2.1.11
com.apple.driver.AppleIntelCPUPowerManagement 104.3.0
com.apple.driver.AppleBluetoothHIDMouse 1.4.0d7
com.apple.driver.AppleHIDMouse 1.4.0d7
com.apple.driver.IOBluetoothHIDDriver 2.3.1f4
com.apple.driver.AppleHDAPlatformDriver 1.8.4fc3
com.apple.driver.AppleProfileReadCounterAction 17
com.apple.driver.AppleProfileTimestampAction 10
com.apple.driver.AppleProfileThreadInfoAction 14
com.apple.driver.AppleProfileRegisterStateAction 10
com.apple.driver.AppleProfileKEventAction 10
com.apple.driver.AppleProfileCallstackAction 20
com.apple.iokit.IOSurface 74.0
com.apple.iokit.IOBluetoothSerialManager 2.3.1f4
com.apple.iokit.IOSerialFamily 10.0.3
com.apple.driver.AppleHDAHardwareConfigDriver 1.8.4fc3
com.apple.iokit.CHUDKernLib 208
com.apple.driver.DspFuncLib 1.8.4fc3
com.apple.iokit.IOFireWireIP 2.0.3
com.apple.iokit.IO80211Family 310.6
com.apple.iokit.IONetworkingFamily 1.9
com.apple.driver.AppleUSBAudio 2.6.8fc1
com.apple.iokit.IOAudioFamily 1.7.6fc2
com.apple.kext.OSvKernDSPLib 1.3
com.apple.iokit.AppleProfileFamily 41
com.apple.driver.AppleHDAController 1.8.4fc3
com.apple.iokit.IOHDAFamily 1.8.4fc3
com.apple.driver.AppleSMC 3.0.1d2
com.apple.driver.IOPlatformPluginFamily 4.1.1d0
com.apple.nvidia.nv50hal 6.1.0
com.apple.NVDAResman 6.1.0
com.apple.iokit.IONDRVSupport 2.1
com.apple.iokit.IOGraphicsFamily 2.1
com.apple.iokit.IOSCSIBlockCommandsDevice 2.6.2
com.apple.driver.CSRUSBBluetoothHCIController 2.3.1f4
com.apple.driver.AppleUSBBluetoothHCIController 2.3.1f4
com.apple.iokit.IOBluetoothFamily 2.3.1f4
com.apple.driver.AppleUSBHIDKeyboard 1.2.0a3
com.apple.iokit.IOUSBHIDDriver 3.9.6
com.apple.driver.AppleHIDKeyboard 1.2.0a3
com.apple.iokit.IOFireWireSerialBusProtocolTransport 2.0.1
com.apple.iokit.IOFireWireSBP2 4.0.6
com.apple.driver.AppleUSBMergeNub 3.9.6
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.2
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.6
com.apple.iokit.IOCDStorageFamily 1.6
com.apple.driver.XsanFilter 402.1
com.apple.iokit.IOATAPIProtocolTransport 2.5.1
com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.2
com.apple.iokit.IOUSBUserClient 3.9.6
com.apple.driver.AppleFileSystemDriver 2.0
com.apple.iokit.IOATAFamily 2.5.1
com.apple.iokit.IOAHCIFamily 2.0.3
com.apple.iokit.IOFireWireFamily 4.2.6
com.apple.driver.AppleEFIRuntime 1.3.0
com.apple.iokit.IOUSBFamily 3.9.6
com.apple.iokit.IOHIDFamily 1.6.2
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.TMSafetyNet 6
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 283
com.apple.iokit.IOStorageFamily 1.6
com.apple.driver.AppleACPIPlatform 1.3.2
com.apple.iokit.IOPCIFamily 2.6
com.apple.iokit.IOACPIFamily 1.3.0
Model: MacBookPro3,1, BootROM MBP31.0070.B07, 2 processors, Intel Core 2 Duo, 2.6 GHz, 6 GB, SMC 1.18f5
Graphics: NVIDIA GeForce 8600M GT, GeForce 8600M GT, PCIe, 256 MB
Memory Module: global_name
AirPort: spairportwireless_card_type_airportextreme (0x168C, 0x87), Atheros 5416: 2.0.19.10
Bluetooth: Version 2.3.1f4, 2 service, 19 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
PCI Card: pci168c,24, sppci_othernetwork, PCI Slot 5
Serial ATA Device: Hitachi HTS722020K9SA00, 186.31 GB
Parallel ATA Device: MATSHITADVD-R UJ-85J
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8502, 0xfd400000
USB Device: Hub, 0x0424 (SMSC), 0x2514, 0xfd100000
USB Device: Logitech Camera, 0x046d (Logitech Inc.), 0x09a6, 0xfd110000
USB Device: Keyboard Hub, 0x05ac (Apple Inc.), 0x1006, 0xfa400000
USB Device: Apple Keyboard, 0x05ac (Apple Inc.), 0x0220, 0xfa420000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x021a, 0x5d200000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x5d100000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8205, 0x1a100000
FireWire Device: FreeAgent FW, Seagate, Up to 800 Mb/sec
<Edited by Host>MikeDV wrote:
As an additional note I went 156 days without a panic prior to the most recent panics.
You shouldn't have them at all. I don't see anything in the 2 panic reports implicating Safari?
Disconnect all peripherals, only Apple keyboard and mouse and test. Often connected peripherals cause kernel panics. See isolating issues in Mac OS X. for troubleshooting steps.
EDIT: Run your Repair Disk from your install disk.
-mj
Message was edited by: macjack -
Weblogic.version gives java error after install of D33T
Hi,
I just installed patch D33T (Oracle WebLogic Server Patch Set Update 10.3.6.0.4) - released April 2013. Before installing the patch, I checked my weblogic version (running setWLSEnv and java weblogic.version) following the instructions in the readme and the command worked.
The patch installed fine, I then checked the version again (first doing setWLSEnv and then running java weblogic.version) - however this produced the java error 'NoClassDefFoundError' - could not find the main class: weblogic.version.
I found a blog entry that suggested adding the weblogic.jar to the classpath, so I did that, then exported the classpatch, ran the setWLSEnv.sh again and tried the java weblogic.version command again - but still received the java error. I then tried running the command from the folder containg the weblogic.jar and still no luck.
Anyone have any ideas why this may be producing errors?
Thanks,
Connie
Environment info: RHEL 64 - Weblogic SErver 11gR1 (10.3.6.0) - The servers start and seem to be running fine after the patch install.I was trying a few more things after I sent my last reply and wondered if my classpath and path values might have not had correct values after running setWLSENV.sh
When I echo'ed their values, they came back without any of the values being set by setWLSEnv.sh
I then set them by copying and pasting the values echo'ed back from the setWLSEnv.sh file - by using export CLASSPATH=$CLASSPATH:<<paste of echo'ed classpath from setWLSEnv.sh>> and then the same for the path. After this, I tried the java weblogic.version and that worked - so now, I guess I am left to deal with issue of my setWLSEnv.sh not setting the CLASSPATH and PATH variables.
Thanks,
Connie -
Java error when installing Groupwise on MacBook Pro
I am trying to install Groupwise for Mac, but continue to receive an error during the installation process that indicates "Uncaught exception in main method: java.lang.unsatisfiedLinkerror:..." Can anyone helpe me? I'd like to install this software.
I'm using a MacBook Pro. Any help would be appreciated.
Thank you,
VladThis usually indicates a messed-up java installation or a missing JNI system library. Can you post the entire stack trace? That would help me to narrow down the problem.
The stack trace looks something like this:
Exception in thread "main" java.lang.UnsatisfiedLinkError: createJNI
at com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Native Method)
at com.sun.star.lib.connections.pipe.PipeConnection.<init>(PipeConnection.java:137 )
at com.sun.star.lib.connections.pipe.pipeConnector.connect(pipeConnector.java:145)
at com.sun.star.comp.connections.Connector.connect(Connector.java:146)
at com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java :133)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:292) -
attempting to install webacc. sles 11 sp 2 --- during configuration process I get prompted to install java 1_6_0.
I couldn't find the java 1_6_0-ibm rpm to install on the srvr so I downloaded jre 1.7.5.. here is some output
grpwise2:/tmp # rpm -Uvh jre-7u15-linux-x64.rpm
Preparing... ########################################### [100%]
1:jre ########################################### [100%]
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/rt.pack
jsse.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/charsets.pack
localedata.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/ext/localedata.pack
grpwise2:/tmp # java -version
java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
grpwise2:/tmp #
yet when I try to configure webaccess I get prompted to install java again. HelpClean install on a sles 11 sp 2 using the web/lamp selection. Here is what I believe I have done. Since it is a VM, I might just start over, doesn't take long. Assuming I start over, creating a vm that is a web/lamp sles 11 sp 2. Would I install JRE (I downloaded the 1.7.5 x64 rpm)? The install the java 1_6_0-ibm rpm from Yast? Then run the Webaccess install? Then run the config and hope it doesn't error out?
is that correct? Thank you for the help. -
Just give me an address for version 9.0--please!
Any extension that was properly updated for Firefox '''4.0''', shouldn't automatically be disabled in Firefox 10.0 for being "incompatible". I have never used CoolIris myself, when I tried it a few years ago it "sucked the life" out of my PC, so I can't comment specifically about that add-on. But I have 60 extensions installed and only one was disabled with the Firefox 10.0 update - an extension that was not correctly updated a year ago; it still works in Firefox but I have to play with it after every Firefox update to get the new version to accept it and use it.
Contact CoolIris support to find out what the problem is with their Firefox add-on, as to why they haven't updated it beyond Firefox 9.0 yet - http://www.cooliris.com/help/
This page - http://www.cooliris.com/help/desktop/?p=self_help - to me indicates that they may have a lot of fixing to so, it's not properly recognizing that Firefox 10.0 is out and a valid version - it says: <br />Your current version: Firefox 10.0 <br />
Most recent version available: Firefox 5.0 <br />
Almost like that help page thinks Firefox 10.0 is being recognized as Firefox 1.0 instead. I seen a few other pages that have misread the Firefox 10.0 version number and mentioned an older version as being the "oldest compatible version". <br />''Shades of website Y2K compliance haunting us from the grave?'' -
Weblogic Server Switch over automatically due to too many open files error.
Hi,
I am facing problem in production environment. I am using Weblogic 8.1 SP4 application.
Weblogic Server automatically switch over every 3 weeks due to few reasons.
1. out of memorry error.
2. Too many open files error.
Please see my below portalserver. log files. Kindly provide some good solution to solve this problem.
The following log is portalserver.log file
###<May 6, 2009 8:28:15 PM ICT> <Notice> <WebLogicServer> <ebizdr> <portalServer> <ListenThread.Default> <<WLS Kernel>> <> <BEA-000205> <After having failed to listen, the server is now listening on port 9001.>
####<May 6, 2009 8:28:15 PM ICT> <Critical> <WebLogicServer> <ebizdr> <portalServer> <ListenThread.Default> <<WLS Kernel>> <> <BEA-000204> <Failed to listen on port 9001, failure count: 1, failing for 0 seconds, java.net.SocketException: Too many open files>
####<May 6, 2009 8:28:15 PM ICT> <Error> <HTTP> <ebizdr> <portalServer> <ExecuteThread: '5' for queue: 'default'> <<WLS Kernel>> <> <BEA-101019> <[ServletContext(id=18480784,name=NBIAProject,context-path=)] Servlet failed with IOException
java.io.FileNotFoundException: /var/opt/weblogic/user_projects/domains/eBizPortalDomain/portalServer/.wlnotdelete/NBIAPortalApp/NBIAProject/images/go.gif (Too many open files)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at weblogic.utils.classloaders.FileSource.getInputStream(FileSource.java:23)
at weblogic.servlet.FileServlet.sendFile(FileServlet.java:563)
at weblogic.servlet.FileServlet.service(FileServlet.java:206)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>
####<May 6, 2009 8:28:16 PM ICT> <Notice> <WebLogicServer> <ebizdr> <portalServer> <ListenThread.Default> <<WLS Kernel>> <> <BEA-000205> <After having failed to listen, the server is now listening on port 9001.>
####<May 6, 2009 8:28:16 PM ICT> <Critical> <WebLogicServer> <ebizdr> <portalServer> <ListenThread.Default> <<WLS Kernel>> <> <BEA-000204> <Failed to listen on port 9001, failure count: 1, failing for 0 seconds, java.net.SocketException: Too many open files>
####<May 6, 2009 8:28:16 PM ICT> <Error> <HTTP> <ebizdr> <portalServer> <ExecuteThread: '5' for queue: 'default'> <<WLS Kernel>> <> <BEA-101019> <[ServletContext(id=18480784,name=NBIAProject,context-path=)] Servlet failed with IOException
java.io.FileNotFoundException: /var/opt/weblogic/user_projects/domains/eBizPortalDomain/portalServer/.wlnotdelete/NBIAPortalApp/NBIAProject/images/search_right.gif (Too many open files)
Thanks & Regards,
Suriyaprakash.VSorry for the late resp. Here's what dev suggests be investigated:
I would want to know:
Can they do a "$ORACLE_HOME/bin/dmstool -dump" and
save/compress/send the results?
Are there any errors printed in the Apache error_log while this leak occurs?
The customer could/should re-check their TCP settings, especially the TCP time wait interval and generally follow the TCP settings recommended in Chapter 5 of the iAS Performance Guide for 9.0.2.
Is there anything else interesting/unusual about the site?
Let us know how it goes. -
Java exception "Too many rows" when launching
Hi,
I'm trying to run SQLDeveloper on AIX 5.2
The Java software is the JAVA 1.5 :
$ ./java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pap64devifx-20070725 (SR5a))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20070426 (JIT enabled)
J9VM - 20070420_12448_BHdSMr
JIT - 20070419_1806_r8
GC - 200704_19)
JCL - 20070725
When launching sqldeveloper, I get more than 3000 error lines...
Here are the beginning :
java.io.FileNotFoundException: <INSTALLATION-PATH>/jdev/extensions/oracle.jdeveloper.db.sqlplus.jar (Too many open files)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
at oracle.ide.boot.JarDirs.getDirsImpl(JarDirs.java:75)
at oracle.ide.boot.JarDirs.<init>(JarDirs.java:63)
at oracle.ide.boot.SharedJarByPackage.<init>(SharedJarByPackage.java:19)
at oracle.ide.boot.IdeSharedCodeSourceFactory.createCodeSource(IdeSharedCodeSourceFactory.java:30)
at oracle.classloader.SharedCodeSourceFactory.create(SharedCodeSourceFactory.java:43)
at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:315)
at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:174)
at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:148)
at oracle.classloader.SharedCodeSourceSet.subscribe(SharedCodeSourceSet.java:215)
at oracle.classloader.PolicyClassLoader.addCodeSource(PolicyClassLoader.java:874)
at oracle.ideimpl.extension.ExtensionManagerImpl.addToPolicyClassLoader(ExtensionManagerImpl.java:1464)
at oracle.ideimpl.extension.ExtensionManagerImpl.addURLToClassPath(ExtensionManagerImpl.java:1401)
at oracle.ideimpl.extension.ExtensionManagerImpl.mav$addURLToClassPath(ExtensionManagerImpl.java:116)
at oracle.ideimpl.extension.ExtensionManagerImpl$4.addToClasspath(ExtensionManagerImpl.java:690)
at javax.ide.extension.spi.BaseExtensionVisitor.addExtensionSourceToClasspath(BaseExtensionVisitor.java:278)
If it could help you, the splash screen is display a short time and the progression bar is beginning but for a short time only, after what the process is dying.
Thanks,
Christianjava.io.FileNotFoundException: <INSTALLATION-PATH>/jdev/extensions/oracle.jdeveloper.db.sqlplus.jar (Too many open files)
You have exceeded your max open files limit as determined by your operating system. You need to talk to your system administrators. -
EDI: Syntax error in IDoc (too many repetitions of a segment)
Hi All -
We are getting an "EDI: Syntax error in IDoc (too many repetitions of a segment)" error message while processing the REMADV message in the payment run program.
Basic Type : PEXR2002
Message Type : REMADV
Segment Name : E1EDP02
This issue is due to BELNR length in above segment, since payment run program assigning the 45 chars but BELNR length is 35 char, is there any way or OSS notes we can implement to rectify the same.
Thanks in Advance.
Rds,
KHi,
This error is the segment definition violation. Open your BASIC IDOC type in WE30, double click on the segment TESTIDOC.
In the popup you can see properties like mandatory segment, Minimum number and Max number. Your IDOC is crossing the max number of repetitions it can have. If any of the segment definition perperties like this one, or improper position of the segment etc occurs IDOC is generated with syntax error.
Thanks,
Vinod. -
SMD agents occupying too many session in java system
Hello All,
I can see SMD agent occupying too many sessions in the Java instance.
Due to this all the available sessions are getting occupied and system performance is degradingHi Rajesh,
Please increase the sessions and share more details on the performance so as to provide guidelines.
Regards,
Deepak Kori -
Operation Could Not Be Completed: Too Many Open...
I've had this error showing up a lot in the Safari 3.2 and 4.0 beta activity window when loading multiple tabs of pages with many images (usually gallery type pages or blogs with lots of thumbnails). The result is that some images or other elements like style sheets don't load, leading to the blue question mark, or messed up formatting. Unfortunately, the activity window can't be stretched wide enough to see the whole error, but in fact it's "Operation Could Not Be Completed: Too Many Open Files". The error "socket(PF_ROUTE) failed: Too many open files" shows up in the Console as well, at least with Safari 4. I had also experienced similar problems with "Operation Timed Out" errors as well.
I've been pulling my hair out on this one, because it's rather inconsistent, not to mention annoying. You can usually get an individual page to load completely by refreshing it, but that kind of defeats the purpose of loading multiple tabs all at once. It's also less of a problem if more of those pages are already cached, but you never know for sure. Running your connection through a proxy also helps a bit, but not always.
I found a fix, but it's actually not Safari's "fault" per se. The issue lies in the allowable number of open files per user process, which is set by the system's launchd process at boot time. Note that Safari is not entirely innocent, as FireFox doesn't have this problem. It Seems that Safari just tries to load everything all at once, whereas FireFox does a better job of managing its load requests. Anyway if you run the following command in Terminal:
sudo launchctl limit
the following list should show up (with perhaps slightly different values)
cpu unlimited unlimited
filesize unlimited unlimited
data 6291456 unlimited
stack 8388608 67104768
core 0 unlimited
rss unlimited unlimited
memlock unlimited unlimited
maxproc 200 532
maxfiles 256 unlimited
The second column is a "soft limit" and the third column is a "hard limit", though to be honest I'm not exactly sure what the difference entails. The image loading problem is caused by hitting the maxfiles limit of just 256 files. The solution is to change maxfiles to 4096/unlimited, and also change maxproc to 1000/2000 since it's pretty low as well. That sounds like a pretty big change, but OS X server is supposed to change them to numbers like this when services like Apache are enabled, and Apple even mentions how to change maxproc at http://support.apple.com/kb/TS1659
To make these changes, run the following two commands in Terminal and restart the computer:
echo "limit maxproc 1000 2000" | sudo tee -a /etc/launchd.conf
echo "limit maxfiles 4096 unlimited" | sudo tee -a /etc/launchd.conf
The commands add the two lines in quotes to the launchd.conf file in /etc/ (if no file exists yet, it creates it). That should clear up the loading issues. I haven't noticed any other problems with these increased numbers, but I'll report back if anything seems to go amiss. Hopefully this will be helpful to someone.I faced the same problem with an image gallery using css for image resizing. Thanks for the explanation.
-
WLS 92MP1: Application Poller issue Too many open files
Hi,
We have a wls92mp1 domain on linux AS4(64bit) with Sun jdk 1.5.0_14. It contains only Admin server where we have deployed the application. Over a period of time the server start showing up below message in the logs. We have not deployed the application from autodeploy directory. And the file "/home/userid/wls92/etg/servers/userid_a/cache/.app_poller_lastrun " is available in the location, still it throws FileNotFoundException.
<Error> <Application Poller> <BEA-149411> <I/O exception encountered java.io.FileNotFoundException: /home/userid/wls92/etg/servers/userid_a/cache/.a
pp_poller_lastrun (Too many open files).
java.io.FileNotFoundException: /home/userid/wls92/etg/servers/userid_a/cache/.app_poller_lastrun (Too many open files)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at java.io.FileWriter.<init>(FileWriter.java:73)
at weblogic.management.deploy.GenericAppPoller.setLastRunFileMap(GenericAppPoller.java:423)
Any help regarding this would be highly appreciated.
Thanks.Hi,
By above seeing in error, this error code (BEA-149411) describe the following
149411: I/O exception encountered {0}.
L10n Package: weblogic.management.deploy.internal
I18n Package: weblogic.management.deploy.internal
Subsystem: Application Poller
Severity: Error
Stack Trace: true
Message Detail: An I/O exception denotes a failure to perform a read/write operation on the application files.
Cause: An I/O exception can occur during file read/write while deploying an application.
Action: Take corrective action based on the exception message details.
i think it helps u.
-abhi -
"Bad Data, too many results for shortname"
Every 10 minutes since October 13 the wikid error log has recorded the following error message:
*"Bad Data, too many results for shortname: username"*, always naming the same user, who is not actually doing anything.
Coinciding with that message at the same time every 10 minutes, the system log records 13 or 14 of the following:
*"Python\[15645\]: ••• -\[NSAutoreleasePool release]: This pool has already been released, do not drain it (double release)."*
15645 is a process owned by _teamserver, which would appear to confirm the connection between the python and wikid error messages.
Last clue: The messages (I have determined in hindsight) started while I was setting up the server to do vacation messages. The user named in the "Bad data" messages was the user who wanted to (and did) set up a vacation message at that time. They worked, too.
Anyone have any ideas about what is going on and how to fix it? BTW, google does not find even one page where this "Bad data" error message is mentioned.Thanks for your response. To answer your questions:
+Are you using AD for your directory?+ No. OD master only.
+Are there users with duplicate shortnames in your directory system?+ No, and to double check, I searched with WGM and only the one came up.
+As a bit of background, the wiki server keeps an private index of user and group information so we can track user preferences, and the "Bad Data, too many results for shortname: username" error is triggered when we do a lookup in that index for a particular user and we (unexpectedly) hit duplicate entries. Are you seeing an issue with using the software, or just an annoying log message?+ It's hard to say (for me) what might be related. The directory or wiki related issues with the server include:
• A memory issue with slapd that eventually causes it to crash. (preceded by lots of "bdbdbcache: db_open(+various: sn, displayname, givenname, mail, maybe others+) failed: Cannot allocate memory (12)" and "logging region out of memory" and "index_param failed" errors.
• The wiki is slow, despite very light use.
• Wake from sleep (network clients with authentication required) can be very slow. Several minutes even.
Any suggestions you may have would be appreciated. -
Slow system and too many details after upgrading to OS/Lion
This MacBook Pro is my right hand, I was doing so great with Snow Leopard, Now everything takes twice longer. I cleaned up, reseted, reinstalled softwares, etc. same.
Too many details that doesn't work correctly.
-Safari constantly needs to be loading. Some times Firefox.
The track pad cant keep open a display box with a long list, once you try to scroll down.
-Preview, i used this app a lot, safe me time, DUPLICATE? instead of SAVE, i don't see the purpose. After editing images and safe them, gamma, color patterns and light appear distortion.
-iTunes volume doesn't comeback after using Skype or another app, remains low.
-Airport takes a bit longer to find a local network.
-There is not an extra space for the left and right scroll bottom on the finder window, sometimes this one disappear but mostly remains which makes it pretty tricky to open the last file at the bottom of the list. because the scroller is on front.
-External Drives, takes longer to connect or disconnect them.
Suggestions before i reinstall Snow Leopard.guizz,
it sounds like you have come across the mother of all problems but i would like to help as much as i can.
first of all, i noticed that it took a few days after installing lion before my system was back to the full stride it had while running snow leopard give it some time and a few updates and lion should speed up because components such as ram take time to adjust.
the duplicate thing in preview is a new thing that came out with versions, one of the many new features in lion. i think it takes the place of the SAVE AS... command and you should still be able to save using the old command-s keystroke however part of lion includes an autosave feature so you really never have to worry about saving your work.
i personally cannot speak for safari or firefox even though i have both because i use google chrome as my web browser you can always give that a try.
in the system preferences under the general settings option you can change how the scroll bar is displayed on the screen.
i would suggest searching for other people who have had similar problems with itunes to try and find an answer
as for everything else your system may just need time to adjust to lion
good luck hope this helped a little -
Overloading a DATE function with TIMESTAMP to avoid "too many declarations"
CREATE OR REPLACE PACKAGE util
AS
FUNCTION yn (bool IN BOOLEAN)
RETURN CHAR;
FUNCTION is_same(a varchar2, b varchar2)
RETURN BOOLEAN;
FUNCTION is_same(a date, b date)
RETURN BOOLEAN;
/* Oracle's documentation says that you cannot overload subprograms
* that have the same type family for the arguments. But,
* apparently timestamp and date are in different type families,
* even though Oracle's documentation says they are in the same one.
* If we don't create a specific overloaded function for timestamp,
* and for timestamp with time zone, we get "too many declarations
* of is_same match" when we try to call is_same for timestamps.
FUNCTION is_same(a timestamp, b timestamp)
RETURN BOOLEAN;
FUNCTION is_same(a timestamp with time zone, b timestamp with time zone)
RETURN BOOLEAN;
/* These two do indeed cause problems, although there are no errors when we compile the package. Why no errors here? */
FUNCTION is_same(a integer, b integer) return boolean;
FUNCTION is_same(a real, b real) return boolean;
END util;
CREATE OR REPLACE PACKAGE BODY util
AS
NAME: yn
PURPOSE: pass in a boolean, get back a Y or N
FUNCTION yn (bool IN BOOLEAN)
RETURN CHAR
IS
BEGIN
IF bool
THEN
RETURN 'Y';
END IF;
RETURN 'N';
END yn;
NAME: is_same
PURPOSE: pass in two values, get back a boolean indicating whether they are
the same. Two nulls = true with this function.
FUNCTION is_same(a in varchar2, b in varchar2)
RETURN BOOLEAN
IS
bool boolean := false;
BEGIN
IF a IS NULL and b IS NULL THEN bool := true;
-- explicitly set this to false if exactly one arg is null
ELSIF a is NULL or b IS NULL then bool := false;
ELSE bool := a = b;
END IF;
RETURN bool;
END is_same;
FUNCTION is_same(a in date, b in date)
RETURN BOOLEAN
IS
bool boolean := false;
BEGIN
IF a IS NULL and b IS NULL THEN bool := true;
-- explicitly set this to false if exactly one arg is null
ELSIF a is NULL or b IS NULL then bool := false;
ELSE bool := a = b;
END IF;
RETURN bool;
END is_same;
FUNCTION is_same(a in timestamp, b in timestamp)
RETURN BOOLEAN
IS
bool boolean := false;
BEGIN
IF a IS NULL and b IS NULL THEN bool := true;
-- explicitly set this to false if exactly one arg is null
ELSIF a is NULL or b IS NULL then bool := false;
ELSE bool := a = b;
END IF;
RETURN bool;
END is_same;
FUNCTION is_same(a in timestamp with time zone, b in timestamp with time zone)
RETURN BOOLEAN
IS
bool boolean := false;
BEGIN
IF a IS NULL and b IS NULL THEN bool := true;
-- explicitly set this to false if exactly one arg is null
ELSIF a is NULL or b IS NULL then bool := false;
ELSE bool := a = b;
END IF;
RETURN bool;
END is_same;
/* Don't bother to fully implement these two, as they'll just cause errors at run time anyway */
FUNCTION is_same(a integer, b integer) return boolean is begin return false; end;
FUNCTION is_same(a real, b real) return boolean is begin return false; end;
END util;
declare
d1 date := timestamp '2011-02-15 13:14:15';
d2 date;
t timestamp := timestamp '2011-02-15 13:14:15';
t2 timestamp;
a varchar2(10);
n real := 1;
n2 real;
begin
dbms_output.put_line('dates');
dbms_output.put_line(util.yn(util.is_same(d2,d2) ));
dbms_output.put_line(util.yn(util.is_same(d1,d2) ));
dbms_output.put_line('timestamps'); -- why don't these throw exception?
dbms_output.put_line(util.yn(util.is_same(t2,t2) ));
dbms_output.put_line(util.yn(util.is_same(t,t2) ));
dbms_output.put_line('varchars');
dbms_output.put_line(util.yn(util.is_same(a,a)));
dbms_output.put_line(util.yn(util.is_same(a,'a')));
dbms_output.put_line('numbers');
-- dbms_output.put_line(util.yn(util.is_same(n,n2))); -- this would throw an exception
end;
/Originally, I had just the one function with VARCHAR2 arguments. This failed to work properly because when dates were passed in, the automatic conversion to VARCHAR2 was dropping the timestamp. So, I added a 2nd function with DATE arguments. Then I started getting "too many declarations of is_same exist" error when passing TIMESTAMPs. This made no sense to me, so even though Oracle's documentation says you cannot do it, I created a 3rd version of the function, to handle TIMESTAMPS explicitly. Surprisingly, it works fine. But then I noticed it didn't work with TIMESTAMP with TIME ZONEs. Hence, the fourth version of the function. Oracle's docs say that if your arguments are of the same type family, you cannot create an overloaded function, but as the example above shows, this is very wrong.
Lastly, just for grins, I created the two number functions, one with NUMBER, the other with REAL, and even these are allowed - they compile. But then at run time, it fails. I'm really confused.
Here is the apparently incorrect Oracle documentation on the matter: http://docs.oracle.com/cd/B12037_01/appdev.101/b10807/08_subs.htm (see overloading subprogram names), and here are the various types and their families: http://docs.oracle.com/cd/E11882_01/appdev.112/e17126/predefined.htm.
Edited by: hotwater on Jan 9, 2013 3:38 PM
Edited by: hotwater on Jan 9, 2013 3:46 PM>
So, I added a 2nd function with DATE arguments. Then I started getting "too many declarations of is_same exist" error when passing TIMESTAMPs. This made no sense to me
>
That is because when you pass a TIMESTAMP Oracle cannot determine whether to implicitly convert it to VARCHAR2 and use your first function or implicitly convert it to DATE and use your second function. Hence the 'too many declarations' exist error.
>
, so even though Oracle's documentation says you cannot do it, I created a 3rd version of the function, to handle TIMESTAMPS explicitly. Surprisingly, it works fine. But then I noticed it didn't work with TIMESTAMP with TIME ZONEs.
>
Possibly because of another 'too many declarations' error? Because now there would be THREE possible implicit conversions that could be done.
>
Hence, the fourth version of the function. Oracle's docs say that if your arguments are of the same type family, you cannot create an overloaded function, but as the example above shows, this is very wrong.
>
I think the documentation, for the 'date' family, is wrong as you suggest. For INTEGER and REAL the issue is that those are ANSI data types and are really the same Oracle datatype; they are more like 'aliases' than different datatypes.
See the SQL Language doc
>
ANSI, DB2, and SQL/DS Datatypes
SQL statements that create tables and clusters can also use ANSI datatypes and datatypes from the IBM products SQL/DS and DB2. Oracle recognizes the ANSI or IBM datatype name that differs from the Oracle Database datatype name. It converts the datatype to the equivalent Oracle datatype, records the Oracle datatype as the name of the column datatype, and stores the column data in the Oracle datatype based on the conversions shown in the tables that follow.
INTEGER
INT
SMALLINT
NUMBER(38)
FLOAT (Note b)
DOUBLE PRECISION (Note c)
REAL (Note d)
FLOAT(126)
FLOAT(126)
FLOAT(63)
Maybe you are looking for
-
AppServer crashes. Need help troubleshooting
After following the guidance and completing the installation I have noticed AppServer will crash intermittently. It could happen after 5 mins running or 15. Here's the log in /opt/SUNWappserver/domains/domain1/logs/server.log [#|2008-10-10T00:08:47.6
-
Container for alert category could not be loaded
Hi All, I am having very strange issue with container(Variables). I defined Alert category, created container elements and I was using them in long and short text. They were working fine, but now if I open Alert category and click on container tab, i
-
Sorry if this has already been answered but I can't find the answer. I've got an N91 and I'm trying to connect to my private Wireless Router. I've got a 128 bit WEP key but when I try to type it into the phone, I'm only allowed to enter 13 characters
-
Hi, i need to make standalone jumpstart bootable solaris 10 sparc dvd but i have some problems with the new installation process. i readed all the scripts in the boot process but i don't now what i need to change and where i need to change it in orde
-
Whay can't I run Logic 8 with the 9 upgrade on my Macbook pro?
I have just bought logic pro 8 and in the same run upgraded it to 9 as it followed the package. But after I installed it and push the Logic icon to use the program it says - You can't use this version of the application Logic Pro.app with this versio