Help me decipher this NullPointerException
I've done all that I can to figure out why I'm getting this NullPointerException.
Thanks in advancd for your help.
Jason
Here is were I'm calling the class from:
SpellDictionary dictionary;
//bunch of code .....
public void test(){
boolean foo = dictionary.isCorrect("word");
System.out.println(foo);
Here is the complete class I'm calling:
package com.swabunga.spell.engine;
import java.io.*;
import java.util.*;
import java.net.*;
public class SpellDictionary {
private Transformator tf = null;
* Returns the code representing the word.
public String getCode(String word) {
tf = new DoubleMeta();
return tf.transform(word);
* Returns true if the word is correctly spelled against the current word list.
public boolean isCorrect(String word) {
System.out.println("isCorrect");
String words;
try {
URL url;
URLConnection urlConn;
DataOutputStream dos;
url = new URL("http://jason.governet.net/spelling/check.cfm?word=" + word + "&soundex1=" + getCode(word));
System.out.println(url);
urlConn = url.openConnection();
urlConn.setDoInput(true);
urlConn.setDoOutput(true);
urlConn.setUseCaches(false);
urlConn.setRequestProperty ("Content-Type", "application/x-www-form-urlencoded");
// the server responce
BufferedReader dis = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
words = dis.readLine();
dis.close();
catch (Exception ex) {
System.out.println("check word error ");
System.err.println("SpellChecker error: "+ex.toString());
ex.printStackTrace();
return false;
//LinkedList possible = getWords(getCode(word));
if (words.trim().equals("1"))
return true;
return false;
Also, next time, please format your code (see the link that says "Formatting Help" right above the message entry box), and please be more specific. You left out where you were getting the exception, and possibly the very code that causes it--or, if I guessed right, the code where lack of an additional line of code is causing it.
The more relevant information you provide, the easier it is for people to answer your question. Notice the emphasis on relevant. Pasting in all of your code doesn't usually help a whole lot. Sometimes, taking the time to think about what's relevant, and how to best explain your problem without piling on tons of useless information, will allow you to solve the problem without even posting here.
</rant>
That's not directed just at you. It's also another general venting at the many poorly thought out questions posted here.
Similar Messages
-
Hey all,
Ive been trying to add data to a database via preparedstatement. Ive established connection to the database via class that serves this purpose. I need to establish connection multiple times, so i use the connection returned from this class.
Ive tried the query run in SQLeditor. It works fine. can somebody pls suggest me, why this error is being signalled at prepared statement.
prprdStmnt= con.prepareStatement(insertSQuery); //insetSQuery is string queryThe following error is being singalled::
java.sql.SQLException: General error
at sun.jdbc.odbc.JdbcOdbc.throwGenericSQLException(JdbcOdbc.java:7087)
at sun.jdbc.odbc.JdbcOdbc.SQLAllocStmt(JdbcOdbc.java:174)
at sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(JdbcOdbcConnection.java:465)
at sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(JdbcOdbcConnection.java:443)
at com.pms.dao.impl.ONPDAOImpl.addSDTO(ONPDAOImpl.java:64)
One more thing.. cn somebody please provide some link to which i can refer to for these error codes.
thanksyes you need to download the jdbc driver (I use classes12.zip from Oracle 8i) from Oracle (http://www.oracle.com/webapps/search/search.do?datasetId=1&datasetId=43&group=OCOM&group=CUSTOM_APPS&keyword=jdbc+driver).
If you are lost you can try it with DbVisualizer Free Edition (http://www.dbvis.com/products/dbvis/)
--Marc -
Could You Help Me Decipher This Kernel Panic
Hi (and thanks in advance)
Persistent crashes for months now. RAM tests fine using multiple software. Don't know whether it's corrupt third party software or a problem with an external Firewire or USB device. Here's the latest log: I'd appreciate any help you could offer.
Tue Oct 7 06:38:57 2008
panic(cpu 0 caller 0x00E2C288): "AppleDART::mapAddr(0x0012c000) not mapped for I/O\n"@AppleDART.cpp:603
Latest stack backtrace for cpu 0:
Backtrace:
0x0009B518 0x0009BEBC 0x00029DD8 0x00E2C288 0x00360294 0x0080AB48 0x00809344 0x0080965C
0x004F3D84 0x0035A914 0x0003F94C 0x000B0654
Kernel loadable modules in backtrace (with dependencies):
com.apple.driver.AppleUSBOHCI(3.1.0)@0x801000->0x80dfff
dependency: com.apple.iokit.IOPCIFamily(2.4.1)@0x7a8000
dependency: com.apple.iokit.IOUSBFamily(3.1.5)@0x4f2000
com.apple.iokit.IOUSBFamily(3.1.5)@0x4f2000->0x526fff
com.apple.driver.AppleMacRiscPCI(3.4.0)@0xe26000->0xe2ffff
dependency: com.apple.iokit.IOPCIFamily(2.4.1)@0x7a8000
Proceeding back via exception chain:
Exception state (sv=0x36f5d280)
PC=0x00000000; MSR=0x0000D030; DAR=0x00000000; DSISR=0x00000000; LR=0x00000000; R1=0x00000000; XCP=0x00000000 (Unknown)
BSD process name corresponding to current thread: kernel_task
Mac OS version:
9F33
Kernel version:
Darwin Kernel Version 9.5.0: Wed Sep 3 11:31:44 PDT 2008; root:xnu-1228.7.58~1/RELEASE_PPC
System model name: PowerMac9,1Obviously, you need to do some trial and error to swap out and rule out cables and devices one by one after running Apple Hardware Test on a freshly formatted drive and install to rule out software.
http://www.macfixit.com/article.php?story=20060911080447777
http://www.thexlab.com/faqs/kernelpanics.html
http://www.macmaps.com/kernelpanic.html -
Help Me Decipher This Kernel Panic
Fresh Install, New "Crucial" Ram (already swaped out 1 for the other), No USB Hubs, Removed AirPort Card,
The iMac G5 now crashes upon start up. Please help.
panic(cpu 0 caller 0x00A45288): "AppleDART::mapAddr(0x4f2d0004) not mapped for I/O\n"@AppleDART.cpp:603
Latest stack backtrace for cpu 0:
Backtrace:
0x0009CC88 0x0009D63C 0x00029DA0 0x00A45288 0x00364C84 0x00864F08 0x0085F550 0x0085F918
0x0035ED7C 0x00379254 0x00821928 0x0037482C 0x000B63F4 0x000B48B8
Kernel loadable modules in backtrace (with dependencies):
com.apple.driver.AppleMPIC(1.5.3)@0x81f000->0x822fff
dependency: com.apple.iokit.IOPCIFamily(2.6)@0x749000
com.apple.driver.AppleUSBOHCI(3.3.5)@0x85b000->0x868fff
dependency: com.apple.iokit.IOPCIFamily(2.6)@0x749000
dependency: com.apple.iokit.IOUSBFamily(3.4.3)@0x511000
com.apple.driver.AppleMacRiscPCI(3.4.0)@0xa3f000->0xa48fff
dependency: com.apple.iokit.IOPCIFamily(2.6)@0x749000
Proceeding back via exception chain:
Exception state (sv=0x3de9f000)
PC=0x000B7BF0; MSR=0x00009030; DAR=0x2F891A18; DSISR=0x0A000000; LR=0x000378DC; R1=0x3E23E7C0; XCP=0x00000014 (0x500 - Ext int)
Backtrace:
0x000378C0 0x009F7A74 0x009E1E58 0x00A1184C 0x00A1CA84 0x009E5ABC
0x009E5EA4 0x003805E0 0x0037D8B4 0x00094E74 0x0002C100 0x00024B58 0x000B45CC 0x6174612E
backtrace terminated - frame not mapped or invalid: 0xBFFECF40
Kernel loadable modules in backtrace (with dependencies):
com.apple.ATIRadeon9700(5.4.4)@0x9cb000->0xa27fff
dependency: com.apple.iokit.IONDRVSupport(1.7.3)@0x783000
dependency: com.apple.iokit.IOPCIFamily(2.6)@0x749000
dependency: com.apple.iokit.IOGraphicsFamily(1.7.3)@0x75d000
Exception state (sv=0x49126c80)
PC=0x928221F8; MSR=0x0200D030; DAR=0x2F891A18; DSISR=0x0A000000; LR=0x92829120; R1=0xBFFECF40; XCP=0x00000030 (0xC00 - System call)
BSD process name corresponding to current thread: WindowServer
Mac OS version:
9J61
Kernel version:
Darwin Kernel Version 9.7.0: Tue Mar 31 22:54:29 PDT 2009; root:xnu-1228.12.14~1/RELEASE_PPC
System model name: PowerMac8,2
System uptime in nanoseconds: 13755719805144
unloaded kexts:
com.apple.driver.AppleModemOnHoldService 1.1.4 - last unloaded 35671365180
loaded kexts:
com.apple.driver.AppleModemOnHoldService 1.1.4 - last loaded 31750063693
com.apple.nke.ppp 1.5
com.apple.iokit.IOBluetoothSerialManager 2.1.6f8
com.apple.filesystems.autofs 2.0.2
com.apple.driver.AudioIPCDriver 1.0.6
com.apple.driver.MotorolaS@Hi-
Put the old RAM back in.
Any panics then? -
Help me decipher this kernal panic log?
I have replacement ram on the way from OWC and I am hoping that it is a RAM issue because as a college student who goes to Davis. I am hoping someone here can help me either confirm or tell me otherwise what is going on with my computer. I get panics ~every 15mins.
The formatting for panic might be better on macrumors: http://forums.macrumors.com/showthread.php?t=1361144
Here it is for viewing on these discussions anyways:
Interval Since Last Panic Report: 487396 sec
Panics Since Last Report: 5
Anonymous UUID: B8198837-FB27-4E73-8091-123EBB6F7326
Fri Apr 20 11:27:10 2012
panic(cpu 1 caller 0x2abf6a): Kernel trap at 0x004b5172, type 14=page fault, registers:
CR0: 0x8001003b, CR2: 0x00020008, CR3: 0x00100000, CR4: 0x00000660
EAX: 0x00020000, EBX: 0x74656d39, ECX: 0x00000000, EDX: 0x000003ea
CR2: 0x00020008, EBP: 0x58b6bd68, ESI: 0x74656d39, EDI: 0x58b6bde8
EFL: 0x00010206, EIP: 0x004b5172, CS: 0x00000008, DS: 0x52c90010
Error code: 0x00000000
Backtrace (CPU 1), Frame : Return Address (4 potential args on stack)
0x58b6bb88 : 0x21b837 (0x5dd7fc 0x58b6bbbc 0x223ce1 0x0)
0x58b6bbd8 : 0x2abf6a (0x59e3d0 0x4b5172 0xe 0x59e59a)
0x58b6bcb8 : 0x2a1a78 (0x58b6bcd0 0x1 0x58b6bd68 0x4b5172)
0x58b6bcc8 : 0x4b5172 (0xe 0x8630048 0x18ef0010 0x8600010)
0x58b6bd68 : 0x49686a (0x74656d39 0x3ea 0x0 0x0)
0x58b6bdb8 : 0xe3e887 (0x74656d39 0x3ea 0x0 0x58b6bdec)
0x58b6bdf8 : 0xef6c7d (0x74656d39 0x0 0x58b6be78 0x1)
0x58b6be38 : 0xf0e2cb (0x87873c0 0x0 0x1987ae59 0x40f)
0x58b6bea8 : 0xe4bc96 (0x44295000 0x0 0x86754b0 0x0)
0x58b6bed8 : 0x553ec7 (0x86cec00 0x879f8c0 0x1 0x86753d4)
0x58b6bf28 : 0x552ea6 (0x879f8c0 0x0 0x0 0x4ba61854)
0x58b6bf88 : 0x552eea (0x86cb080 0x8f4c940 0x58b6bfc8 0x4d45e9)
0x58b6bfc8 : 0x2a179c (0x86cb080 0x0 0x10 0x8d2ebe0)
Kernel Extensions in backtrace (with dependencies):
com.apple.driver.AirPortBrcm43224(428.42.4)@0xe3d000->0xfb2fff
dependency: com.apple.iokit.IOPCIFamily(2.6.5)@0x92d000
dependency: com.apple.iokit.IO80211Family(320.1)@0xe19000
dependency: com.apple.iokit.IONetworkingFamily(1.10)@0xe02000
BSD process name corresponding to current thread: kernel_task
Mac OS version:
10K549
Kernel version:
Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386
System model name: MacBookPro5,1 (Mac-F42D86C8)
System uptime in nanoseconds: 4462889511833
unloaded kexts:
com.smarttech.iokit.SMARTBoard 9.7 (addr 0x9da000, size 0x8192) - last unloaded 392421944350
loaded kexts:
com.sophos.kext.sav 7.3.0
com.nvidia.CUDA 1.1.0
xxx.qnation.PeerGuardian 1.1.9
com.paceap.kext.pacesupport.snowleopard 5.7.1
com.AmbrosiaSW.AudioSupport 3.2
com.apple.driver.AppleHWSensor 1.9.3d0 - last loaded 332384089014
com.apple.filesystems.autofs 2.1.0
com.apple.driver.AGPM 100.12.31
com.apple.driver.AppleMikeyHIDDriver 1.2.0
com.apple.driver.AppleMikeyDriver 2.0.5f14
com.apple.driver.AppleHDA 2.0.5f14
com.apple.driver.AudioAUUC 1.57
com.apple.driver.SMCMotionSensor 3.0.1d2
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.1.6
com.apple.driver.AppleGraphicsControl 2.10.6
com.apple.driver.AppleUpstreamUserClient 3.5.7
com.apple.driver.AppleMCCSControl 1.0.20
com.apple.driver.AppleLPC 1.5.1
com.apple.driver.AppleIntelPenrynProfile 17
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.0a1
com.apple.kext.AppleSMCLMU 1.5.2d10
com.apple.GeForce 6.3.6
com.apple.driver.AppleUSBTCButtons 201.6
com.apple.driver.AppleUSBTCKeyboard 201.6
com.apple.driver.AppleIRController 303.8
com.apple.iokit.SCSITaskUserClient 2.6.8
com.apple.BootCache 31.1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.driver.AppleFWOHCI 4.7.3
com.apple.iokit.IOAHCIBlockStorage 1.6.4
com.apple.driver.AirPortBrcm43224 428.42.4
com.apple.driver.AppleSmartBatteryManager 160.0.0
com.apple.driver.AppleUSBHub 4.2.4
com.apple.driver.AppleUSBEHCI 4.2.4
com.apple.driver.AppleAHCIPort 2.1.7
com.apple.nvenet 2.0.17
com.apple.driver.AppleUSBOHCI 4.2.0
com.apple.driver.AppleEFINVRAM 1.4.0
com.apple.driver.AppleRTC 1.3.1
com.apple.driver.AppleHPET 1.5
com.apple.driver.AppleACPIButtons 1.3.6
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.3.6
com.apple.driver.AppleAPIC 1.4
com.apple.driver.AppleIntelCPUPowerManagementClient 142.6.0
com.apple.security.sandbox 1
com.apple.security.quarantine 0
com.apple.nke.applicationfirewall 2.1.14
com.apple.driver.AppleIntelCPUPowerManagement 142.6.0
com.apple.driver.AppleProfileReadCounterAction 17
com.apple.driver.DspFuncLib 2.0.5f14
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.driver.AppleSMBusController 1.0.10d0
com.apple.iokit.IOFireWireIP 2.0.3
com.apple.iokit.IOSurface 74.2
com.apple.iokit.IOBluetoothSerialManager 2.4.5f3
com.apple.iokit.IOSerialFamily 10.0.3
com.apple.iokit.IOAudioFamily 1.8.3fc2
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleBacklightExpert 1.0.1
com.apple.driver.AppleHDAController 2.0.5f14
com.apple.iokit.IOHDAFamily 2.0.5f14
com.apple.iokit.AppleProfileFamily 41
com.apple.driver.IOPlatformPluginFamily 4.7.0a1
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleSMC 3.1.0d5
com.apple.nvidia.nv50hal 6.3.6
com.apple.NVDAResman 6.3.6
com.apple.iokit.IONDRVSupport 2.2.1
com.apple.iokit.IOGraphicsFamily 2.2.1
com.apple.driver.AppleUSBMultitouch 207.7
com.apple.driver.BroadcomUSBBluetoothHCIController 2.4.5f3
com.apple.driver.AppleUSBBluetoothHCIController 2.4.5f3
com.apple.iokit.IOBluetoothFamily 2.4.5f3
com.apple.iokit.IOUSBHIDDriver 4.2.0
com.apple.driver.AppleUSBMergeNub 4.2.4
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.8
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.6
com.apple.iokit.IOCDStorageFamily 1.6.1
com.apple.driver.XsanFilter 402.1
com.apple.iokit.IOFireWireFamily 4.2.6
com.apple.iokit.IOAHCISerialATAPI 1.2.6
com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.8
com.apple.iokit.IO80211Family 320.1
com.apple.iokit.IOUSBUserClient 4.2.4
com.apple.iokit.IOAHCIFamily 2.0.6
com.apple.iokit.IONetworkingFamily 1.10
com.apple.iokit.IOUSBFamily 4.2.4
com.apple.driver.NVSMU 2.2.7
com.apple.driver.AppleEFIRuntime 1.4.0
com.apple.iokit.IOHIDFamily 1.6.6
com.apple.iokit.IOSMBusFamily 1.1
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 6
com.apple.driver.DiskImages 289
com.apple.iokit.IOStorageFamily 1.6.3
com.apple.driver.AppleACPIPlatform 1.3.6
com.apple.iokit.IOPCIFamily 2.6.5
com.apple.iokit.IOACPIFamily 1.3.0
Model: MacBookPro5,1, BootROM MBP51.007E.B06, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.33f8
Graphics: NVIDIA GeForce 9600M GT, NVIDIA GeForce 9600M GT, PCIe, 256 MB
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.131.42.4)
Bluetooth: Version 2.4.5f3, 2 service, 12 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: Hitachi HTS543225L9SA02, 232.89 GB
Serial ATA Device: HL-DT-ST DVDRW GS21N
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8507, 0x24400000 / 2
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06100000 / 2
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8213, 0x06110000 / 4
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0236, 0x04600000 / 3
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x04500000 / 2latest panic
Interval Since Last Panic Report: 492592 sec
Panics Since Last Report: 7
Anonymous UUID: B8198837-FB27-4E73-8091-123EBB6F7326
Fri Apr 20 18:31:03 2012
panic(cpu 1 caller 0x2abf6a): Kernel trap at 0x58f1c69d, type 6=invalid opcode, registers:
CR0: 0x80010033, CR2: 0x80e3a090, CR3: 0x09cb5000, CR4: 0x00000660
EAX: 0x00000005, EBX: 0x08af7004, ECX: 0x08af7020, EDX: 0x00000000
CR2: 0x80e3a090, EBP: 0x86e4a298, ESI: 0x08af7004, EDI: 0x00000013
EFL: 0x00010206, EIP: 0x58f1c69d, CS: 0x00000008, DS: 0x06dc0010
Error code: 0x00000000
Backtrace (CPU 1), Frame : Return Address (4 potential args on stack)
0x86e4a098 : 0x21b837 (0x5dd7fc 0x86e4a0cc 0x223ce1 0x0)
0x86e4a0e8 : 0x2abf6a (0x59e3d0 0x58f1c69d 0x6 0x59e51b)
0x86e4a1c8 : 0x2a1a78 (0x86e4a1e0 0x0 0x86e4a298 0x58f1c69d)
0x86e4a1d8 : 0x58f1c69d (0xe 0x48 0x86e40010 0x500010)
0x86e4a298 : 0x58de377b (0x8af7004 0x13 0x0 0x0)
0x86e4a378 : 0x58de41e3 (0xc1d000a7 0xbfef0033 0xbfef0034 0x837c)
0x86e4a3a8 : 0x58de997f (0x86e4a438 0x86e4a4ac 0x86e4a3d8 0x2aa21d)
0x86e4a3f8 : 0x58de9b3f (0xc1d000a7 0x1 0x86e4a458 0x58dffd41)
0x86e4a488 : 0x58de9c34 (0x837c 0x86e4a7d0 0x0 0x0)
0x86e4a518 : 0x58e0d60b (0x86e4a6f8 0x9 0x0 0x0)
0x86e4a6c8 : 0x58e0f53e (0x0 0x600d600d 0x702b 0x86e4a6f8)
0x86e4a798 : 0x583dfeae (0xc1d000a7 0xbfef0033 0xbfef0034 0x837c)
0x86e4a808 : 0x583ef734 (0x8ba8400 0x137e0000 0x8 0x0)
0x86e4a828 : 0x58414322 (0x137e0000 0xb 0x86e4a848 0x2345f4)
0x86e4a858 : 0x58414b3d (0x8eaf000 0x0 0x86e4a87c 0x0)
0x86e4a888 : 0x583f4d79 (0x8eaf000 0x4ae4f080 0x0 0x0)
0x86e4a8d8 : 0x583b6d0c (0x42f40000 0x0 0x0 0x3)
0x86e4a948 : 0x583b640f (0x42f40000 0x0 0x2 0x3)
0x86e4a978 : 0x583ac05f (0x42f40000 0x0 0x2 0x42f1e000)
0x86e4aab8 : 0x583e55d8 (0x42f1e000 0x1 0x86e4abcc 0x86e4abc8)
0x86e4ab68 : 0x583a7fe1 (0x42f1e000 0x1 0x86e4abcc 0x86e4abc8)
0x86e4abe8 : 0x56da06 (0x42f1e000 0x0 0x86e4ae3c 0x86e4ac74)
0x86e4ac38 : 0x56e2a5 (0x58436720 0x42f1e000 0x13784088 0x1)
0x86e4ac88 : 0x56eb59 (0x42f1e000 0x10 0x86e4acd0 0x0)
0x86e4ada8 : 0x286638 (0x42f1e000 0x10 0x13784088 0x1)
0x86e4be58 : 0x21dbe5 (0x13784060 0x93745a0 0x1fd7e8 0x6703)
0x86e4be98 : 0x210a86 (0x13784000 0x0 0x8bd6d20 0x8f263b0)
0x86e4bef8 : 0x216f84 (0x13784000 0x0 0x0 0x0)
0x86e4bf78 : 0x295c57 (0x848b608 0x0 0x0 0x0)
0x86e4bfc8 : 0x2a256d (0x848b604 0x1 0x10 0x0)
Kernel Extensions in backtrace (with dependencies):
com.apple.GeForce(6.3.6)@0x5839c000->0x58452fff
dependency: com.apple.NVDAResman(6.3.6)@0x58da1000
dependency: com.apple.iokit.IONDRVSupport(2.2.1)@0x5803a000
dependency: com.apple.iokit.IOPCIFamily(2.6.5)@0x5115a000
dependency: com.apple.iokit.IOGraphicsFamily(2.2.1)@0x5891c000
com.apple.NVDAResman(6.3.6)@0x58da1000->0x5908efff
dependency: com.apple.iokit.IOPCIFamily(2.6.5)@0x5115a000
dependency: com.apple.iokit.IONDRVSupport(2.2.1)@0x5803a000
dependency: com.apple.iokit.IOGraphicsFamily(2.2.1)@0x5891c000
BSD process name corresponding to current thread: WindowServer
Mac OS version:
10K549
Kernel version:
Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386
System model name: MacBookPro5,1 (Mac-F42D86C8)
System uptime in nanoseconds: 4077999988964
unloaded kexts:
com.apple.driver.AppleFileSystemDriver 2.0 (addr 0x5130b000, size 0x12288) - last unloaded 200884266523
loaded kexts:
com.nvidia.CUDA 1.1.0 - last loaded 51529215741
com.sophos.kext.sav 7.3.0
com.paceap.kext.pacesupport.snowleopard 5.7.1
com.AmbrosiaSW.AudioSupport 3.2
com.apple.driver.AppleHWSensor 1.9.3d0
com.apple.filesystems.autofs 2.1.0
com.apple.driver.AGPM 100.12.31
com.apple.driver.AudioAUUC 1.57
com.apple.driver.AppleMikeyHIDDriver 1.2.0
com.apple.driver.AppleIntelPenrynProfile 17
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleUpstreamUserClient 3.5.7
com.apple.driver.AppleMikeyDriver 2.0.5f14
com.apple.driver.AppleHDA 2.0.5f14
com.apple.driver.AudioIPCDriver 1.1.6
com.apple.driver.AppleMCCSControl 1.0.20
com.apple.nvenet 2.0.17
com.apple.driver.SMCMotionSensor 3.0.1d2
com.apple.driver.AppleGraphicsControl 2.10.6
com.apple.GeForce 6.3.6
com.apple.driver.AirPortBrcm43224 428.42.4
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.0a1
com.apple.driver.AppleLPC 1.5.1
com.apple.kext.AppleSMCLMU 1.5.2d10
com.apple.driver.AppleUSBTCButtons 201.6
com.apple.driver.AppleUSBTCKeyboard 201.6
com.apple.driver.AppleIRController 303.8
com.apple.iokit.SCSITaskUserClient 2.6.8
com.apple.iokit.IOAHCIBlockStorage 1.6.4
com.apple.driver.AppleAHCIPort 2.1.7
com.apple.driver.AppleFWOHCI 4.7.3
com.apple.BootCache 31.1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.driver.AppleUSBHub 4.2.4
com.apple.driver.AppleEFINVRAM 1.4.0
com.apple.driver.AppleUSBEHCI 4.2.4
com.apple.driver.AppleUSBOHCI 4.2.0
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.6
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.3.6
com.apple.driver.AppleAPIC 1.4
com.apple.driver.AppleIntelCPUPowerManagementClient 142.6.0
com.apple.security.sandbox 1
com.apple.security.quarantine 0
com.apple.nke.applicationfirewall 2.1.14
com.apple.driver.AppleIntelCPUPowerManagement 142.6.0
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.2
com.apple.iokit.IOBluetoothSerialManager 2.4.5f3
com.apple.iokit.IOSerialFamily 10.0.3
com.apple.driver.DspFuncLib 2.0.5f14
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.driver.AppleHDAController 2.0.5f14
com.apple.iokit.IOHDAFamily 2.0.5f14
com.apple.iokit.IOFireWireIP 2.0.3
com.apple.iokit.AppleProfileFamily 41
com.apple.iokit.IOAudioFamily 1.8.3fc2
com.apple.kext.OSvKernDSPLib 1.3
com.apple.iokit.IO80211Family 320.1
com.apple.iokit.IONetworkingFamily 1.10
com.apple.driver.NVSMU 2.2.7
com.apple.driver.IOPlatformPluginFamily 4.7.0a1
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleBacklightExpert 1.0.1
com.apple.driver.AppleSMC 3.1.0d5
com.apple.nvidia.nv50hal 6.3.6
com.apple.NVDAResman 6.3.6
com.apple.iokit.IONDRVSupport 2.2.1
com.apple.iokit.IOGraphicsFamily 2.2.1
com.apple.driver.BroadcomUSBBluetoothHCIController 2.4.5f3
com.apple.driver.AppleUSBBluetoothHCIController 2.4.5f3
com.apple.iokit.IOBluetoothFamily 2.4.5f3
com.apple.driver.AppleUSBMultitouch 207.7
com.apple.iokit.IOUSBHIDDriver 4.2.0
com.apple.driver.AppleUSBMergeNub 4.2.4
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.8
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.6
com.apple.iokit.IOCDStorageFamily 1.6.1
com.apple.driver.XsanFilter 402.1
com.apple.iokit.IOAHCISerialATAPI 1.2.6
com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.8
com.apple.iokit.IOAHCIFamily 2.0.6
com.apple.iokit.IOFireWireFamily 4.2.6
com.apple.iokit.IOUSBUserClient 4.2.4
com.apple.iokit.IOUSBFamily 4.2.4
com.apple.driver.AppleEFIRuntime 1.4.0
com.apple.iokit.IOHIDFamily 1.6.6
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.TMSafetyNet 6
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.DiskImages 289
com.apple.iokit.IOStorageFamily 1.6.3
com.apple.driver.AppleACPIPlatform 1.3.6
com.apple.iokit.IOPCIFamily 2.6.5
com.apple.iokit.IOACPIFamily 1.3.0
Model: MacBookPro5,1, BootROM MBP51.007E.B06, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.33f8
Graphics: NVIDIA GeForce 9600M GT, NVIDIA GeForce 9600M GT, PCIe, 256 MB
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.131.42.4)
Bluetooth: Version 2.4.5f3, 2 service, 12 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: Hitachi HTS543225L9SA02, 232.89 GB
Serial ATA Device: HL-DT-ST DVDRW GS21N
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8507, 0x24400000 / 2
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06100000 / 2
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8213, 0x06110000 / 5
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0236, 0x04600000 / 3
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x04500000 / 2 -
Help!! can anyone decipher this error report?
I would be really grateful if anyone could decipher this error report. My system has become really unstable and unusable if I can get beyond the grey screen. During use I get a grey curtain come down and a message telling me to hold the power switch to shutdown.
Model: MacPro1,1, BootROM MP11.005C.B08, 4 processors, Dual-Core Intel Xeon, 3 GHz, 2 GB
Graphics: kHW_ATIr580Item, ATY,RadeonX1900, spdisplayspciedevice, 512 MB
Memory Module: DIMM Riser A/DIMM 1, 1 GB, DDR2 FB-DIMM, 667 MHz
Memory Module: DIMM Riser A/DIMM 2, 1 GB, DDR2 FB-DIMM, 667 MHz
Running 10.5.5
PCI Card: ATY,RadeonX1900, display, Slot-1
One of the many messages reads:
Mon Sep 29 21:59:41 2008
Machine-check capabilities (cpu 3) 0x0000000000000006:
family: 6 model: 15 stepping: 6 microcode revision 198
Intel(R) Xeon(R) CPU 5160 @ 3.00GHz
6 error-reporting banks
Machine-check status 0x0000000000000005
restart IP valid
machine-check in progress
MCA error-reporting registers:
IA32MC0STATUS(0x401): 0x1000000020000000 invalid
IA32MC1STATUS(0x405): 0x0000000000000000 invalid
IA32MC2STATUS(0x409): 0x0000000000000000 invalid
IA32MC3STATUS(0x40d): 0x0020000000000000 invalid
IA32MC4STATUS(0x411): 0x0000000000000011 invalid
IA32MC5STATUS(0x415): 0xb200001080200e0f valid
MCA error code : 0x0e0f
Model specific error code: 0x8020
Other information : 0x00000010
Status bits:
Processor context corrupt
Error enabled
Uncorrected error
panic(cpu 3 caller 0x001A8656): Machine Check at 0x00ba9e07, thread:0x3efce40, trapno:0x12, err:0x0, registers:
CR0: 0x8001003b, CR2: 0x00000000, CR3: 0x01009000, CR4: 0x00000660
EAX: 0x00000000, EBX: 0x00000000, ECX: 0x00000004, EDX: 0x2855a240
ESP: 0x2e5f3820, EBP: 0x2e5f3888, ESI: 0x03e41d00, EDI: 0x03e1f000
EFL: 0x00000002, EIP: 0x00ba9e07
Backtrace (CPU 3), Frame : Return Address (4 potential args on stack)
0x2e676fb8 : 0x12b0fa (0x459234 0x2e676fec 0x133243 0x0)
0x2e677008 : 0x1a8656 (0x462498 0xba9e07 0x3efce40 0x12)
0x2e6770e8 : 0x19fcf3 (0x2e677100 0x0 0x0 0x0)
Backtrace terminated-invalid frame pointer 0x2e5f3888
BSD process name corresponding to current thread: kernel_task
Mac OS version:
Not yet set
Kernel version:
Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386
System model name: MacPro1,1 (Mac-F4208DC8)
Many thanks guys.Firstly, well done for getting the crash log.
The bit :
+Processor context corrupt+
+Error enabled+
+Uncorrected error+
+panic(cpu 3 caller 0x001A8656)...+
I'd say is the immediate cause (kernel panic) of the shutdown.
Apart from that, is your memory ok?
There was an identical (is that you\?) post a while back on:
http://forums.macrumors.com/showthread.php?t=484526
This article gives some mmore info as to possible resolution:
http://support.apple.com/kb/TS1388?viewlocale=en_US
Antoher poster had problems with 1st gen Mac Pros:
http://discussions.apple.com/thread.jspa?threadID=1722821&tstart=0
Finally, and this is probably your best course of action: *phone apple (if you cannot get into an Apple store).* It sounds serious enough to me.
Sorry I could not help any further. Good luck -
Please help in this NullPointerException Error
Please help as to why I am getting this NULLPOINTERException
public class TestHarness {
public static void main(String[] args) {
TestHarness th = new TestHarness();
th.t();
public void t(){
HashMap<String, Integer> colMap = new HashMap<String, Integer>();
colMap.put("TRADE_KEYWORD.Strategy", 1);
String reportRow[] = null;
String strat = reportRow[colMap.get("TRADE_KEYWORD.Strategy").intValue()];
System.out.println(strat);
}you do
String reportRow[] = null;then wonder why you get an NPE when you try to access reportRow?
Think! You have to define reportRow (as something other than null) before you can use it! It's not that hard to understand. -
My MacBook Pro is running slowly. I run Mountain Lion on it. I received the following report from Etrecheck. Can someone help me decipher it and provide me with steps to fix the slow speed?
Problem description:
slow computer
EtreCheck version: 2.0.11 (98)
Report generated November 15, 2014 2:57:16 PM EST
Hardware Information: ℹ️
MacBook Pro (15-inch, Mid 2012) (Verified)
MacBook Pro - model: MacBookPro9,1
1 2.3 GHz Intel Core i7 CPU: 4-core
4 GB RAM
BANK 0/DIMM0
2 GB DDR3 1600 MHz ok
BANK 1/DIMM0
2 GB DDR3 1600 MHz ok
Bluetooth: Good - Handoff/Airdrop2 supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
Intel HD Graphics 4000 - VRAM: 384 MB
NVIDIA GeForce GT 650M - VRAM: 512 MB
Color LCD 1440 x 900
System Software: ℹ️
OS X 10.8.5 (12F45) - Uptime: 6 days 7:45:47
Disk Information: ℹ️
TOSHIBA MK5065GSXF disk0 : (500.11 GB)
S.M.A.R.T. Status: Verified
disk0s1 (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / [Startup]: 499.25 GB (25.67 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
HL-DT-ST DVDRW GS31N
USB Information: ℹ️
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Computer, Inc. IR Receiver
Apple Inc. Apple Internal Keyboard / Trackpad
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/Applications/Rowmote Helper.app
[loaded] com.regularrateandrhythm.driver.RowmoteIREmu (1.0 - SDK 10.8) Support
/System/Library/Extensions
[not loaded] com.smarttech.iokit.SMARTBoard (11) Support
[not loaded] com.tectona.driver.PL2303 (1.3.0) Support
[loaded] com.webroot.driver.WebrootSecureAnywhere (54 - SDK 10.7) Support
Problem System Launch Agents: ℹ️
[failed] com.apple.accountsd.plist
[failed] com.apple.AirPlayUIAgent.plist
[failed] com.apple.coreservices.appleid.authentication.plist
[failed] com.apple.lookupd.plist
[failed] com.apple.printtool.agent.plist
[failed] com.apple.scopedbookmarkagent.xpc.plist
Problem System Launch Daemons: ℹ️
[failed] com.apple.coresymbolicationd.plist
[failed] com.apple.wdhelper.plist
Launch Agents: ℹ️
[loaded] com.oracle.java.Java-Updater.plist Support
[running] com.smarttech.boardservice.plist Support
[running] com.smarttech.floatingtools.plist Support
[running] com.smarttech.ink.plist Support
[running] com.smarttech.SBWDKService.plist Support
[running] com.smarttech.smartnotification.plist Support
[running] com.smarttech.systemtrayicon.plist Support
[running] com.webroot.WRMacApp.plist Support
[running] com.webroot.WRMacBackNSync.plist Support
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[loaded] com.oracle.java.Helper-Tool.plist Support
[running] com.regularrateandrhythm.rowmotehelperaide.plist Support
[running] com.webroot.security.mac.plist Support
[running] com.webroot.webfilter.mac.plist Support
User Launch Agents: ℹ️
[loaded] com.google.keystone.agent.plist Support
[running] com.spotify.webhelper.plist Support
User Login Items: ℹ️
Garmin Express Service UNKNOWN (missing value)
iTunesHelper ApplicationHidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
Dropbox Application (/Applications/Dropbox.app)
Spotify Application (/Applications/Spotify.app)
Google Chrome ApplicationHidden (/Applications/Google Chrome.app)
Rowmote Helper Application (/Applications/Rowmote Helper.app)
Internet Plug-ins: ℹ️
Flip4Mac WMV Plugin: Version: 3.2.0.16 - SDK 10.8 Support
FlashPlayer-10.6: Version: 15.0.0.223 - SDK 10.6 Support
npwebroot: Version: 2.0.15 Support
AdobePDFViewerNPAPI: Version: 11.0.06 - SDK 10.6 Support
Flash Player: Version: 15.0.0.223 - SDK 10.6 Support
AdobePDFViewer: Version: 11.0.06 - SDK 10.6 Support
QuickTime Plugin: Version: 7.7.1
SharePointBrowserPlugin: Version: 14.4.5 - SDK 10.6 Support
Unity Web Player: Version: UnityPlayer version 4.5.1f3 - SDK 10.6 Support
Silverlight: Version: 5.1.20513.0 - SDK 10.6 Support
JavaAppletPlugin: Version: Java 7 Update 51 Check version
Safari Extensions: ℹ️
Password Manager
webfilter
3rd Party Preference Panes: ℹ️
Flash Player Support
Flip4Mac WMV Support
Java Support
SMART Board Support
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
3% WindowServer
2% iPhoto
2% mds
2% mdworker
1% Google Chrome
Top Processes by Memory: ℹ️
382 MB Mail
275 MB WebProcess
107 MB Google Chrome
103 MB WindowServer
99 MB Google Chrome Helper
Virtual Memory Information: ℹ️
270 MB Free RAM
1.50 GB Active RAM
1.30 GB Inactive RAM
1.22 GB Wired RAM
20.97 GB Page-ins
8.64 GB Page-outsHi Linc
I hope this is what you were after. Looking forward to hearing your feedback.
Thanks, Susanna.
11/16/14 12:36:02.738 PM com.apple.XType.FontHelper[91728]: FontHelper: message received. (<dictionary: 0x7fbb9b606ce0> { count = 2, contents =
"query" => <string: 0x7fbb9b605720> { length = 109, contents = "com_apple_ats_name_postscript == "Roboto-Regular" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font" }
"restricted" => <bool: 0x7fff7912f320>: true
11/16/14 12:36:02.738 PM com.apple.XType.FontHelper[91728]: AutoActivation: scopes (
"/Library/Application Support/Apple/Fonts"
11/16/14 12:36:02.878 PM com.apple.XType.FontHelper[91728]: FontHelper: message received. (<dictionary: 0x7fbb9a41d950> { count = 2, contents =
"query" => <string: 0x7fbb9a41d2e0> { length = 108, contents = "com_apple_ats_name_postscript == "Roboto-Medium" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font" }
"restricted" => <bool: 0x7fff7912f320>: true
11/16/14 12:36:02.878 PM com.apple.XType.FontHelper[91728]: AutoActivation: scopes (
"/Library/Application Support/Apple/Fonts"
11/16/14 12:36:02.889 PM com.apple.XType.FontHelper[91728]: FontHelper: message received. (<dictionary: 0x7fbb9b102580> { count = 2, contents =
"query" => <string: 0x7fbb9b100580> { length = 107, contents = "com_apple_ats_name_postscript == "Roboto-Light" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font" }
"restricted" => <bool: 0x7fff7912f320>: true
11/16/14 12:36:02.889 PM com.apple.XType.FontHelper[91728]: AutoActivation: scopes (
"/Library/Application Support/Apple/Fonts"
11/16/14 12:36:02.898 PM com.apple.XType.FontHelper[91728]: FontHelper: message received. (<dictionary: 0x7fbb9a41d1d0> { count = 2, contents =
"query" => <string: 0x7fbb9a41d2e0> { length = 106, contents = "com_apple_ats_name_postscript == "Roboto-Bold" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font" }
"restricted" => <bool: 0x7fff7912f320>: true
11/16/14 12:36:02.898 PM com.apple.XType.FontHelper[91728]: AutoActivation: scopes (
"/Library/Application Support/Apple/Fonts"
11/16/14 12:36:03.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91723 [cfprefsd]
11/16/14 12:36:03.784 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91721]) Exited: Killed: 9
11/16/14 12:36:03.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91721 [SleepServicesD]
11/16/14 12:36:08.471 PM com.apple.launchd.peruser.501[159]: (com.apple.tccd[91730]) Exited: Killed: 9
11/16/14 12:36:08.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91730 [tccd]
11/16/14 12:36:09.592 PM com.apple.launchd[1]: (com.apple.xpcd.F5010000-0000-0000-0000-000000000000[91727]) Exited: Killed: 9
11/16/14 12:36:09.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91727 [xpcd]
11/16/14 12:36:13.129 PM com.apple.launchd[1]: (com.apple.XType.FontHelper[91728]) Exited: Killed: 9
11/16/14 12:36:13.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91728 [XType.FontHelper]
11/16/14 12:36:14.996 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91739]) Exited: Killed: 9
11/16/14 12:36:14.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91739 [SleepServicesD]
11/16/14 12:36:20.120 PM com.apple.launchd[1]: (com.apple.cfprefsd.xpc.daemon[76618]) Exited: Killed: 9
11/16/14 12:36:20.000 PM kernel[0]: memorystatus_thread: idle exiting pid 76618 [cfprefsd]
11/16/14 12:36:23.433 PM com.apple.launchd.peruser.501[159]: (com.apple.cfprefsd.xpc.agent[76616]) Exited: Killed: 9
11/16/14 12:36:23.000 PM kernel[0]: memorystatus_thread: idle exiting pid 76616 [cfprefsd]
11/16/14 12:36:26.261 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91752]) Exited: Killed: 9
11/16/14 12:36:26.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91752 [SleepServicesD]
11/16/14 12:36:37.691 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91764]) Exited: Killed: 9
11/16/14 12:36:38.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91764 [SleepServicesD]
11/16/14 12:36:48.938 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91777]) Exited: Killed: 9
11/16/14 12:36:49.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91777 [SleepServicesD]
11/16/14 12:37:01.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91788 [SleepServicesD]
11/16/14 12:37:00.821 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91788]) Exited: Killed: 9
11/16/14 12:37:04.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91706 [distnoted]
11/16/14 12:37:15.656 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91795]) Exited: Killed: 9
11/16/14 12:37:15.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91795 [SleepServicesD]
11/16/14 12:37:27.016 PM ReportCrash[91819]: Failed to create CSSymbolicatorRef for Webroot SecureAnywhere[264]
11/16/14 12:37:27.125 PM ReportCrash[91819]: Failed to create dSYM-less CSSymbolicatorRef for Webroot SecureAnywhere[264]
11/16/14 12:37:27.487 PM com.apple.launchd.peruser.501[159]: (com.webroot.WRMacApp[264]) Job appears to have crashed: Segmentation fault: 11
11/16/14 12:37:30.336 PM com.apple.launchd[1]: (WSDaemon[61]) Exited abnormally: Broken pipe: 13
11/16/14 12:37:34.295 PM WindowServer[79]: CGXDisableUpdate: UI updates were forcibly disabled by application "iPhoto" for over 1.00 seconds. Server has re-enabled them.
11/16/14 12:37:34.594 PM WindowServer[79]: reenable_update_for_connection: UI updates were finally reenabled by application "iPhoto" after 1.30 seconds (server forcibly re-enabled them after 1.00 seconds)
11/16/14 12:37:37.648 PM ReportCrash[91819]: Saved crash report for Webroot SecureAnywhere[264] version 8.0.7.78 (8.0.7.78) to /Users/landerson/Library/Logs/DiagnosticReports/Webroot SecureAnywhere_2014-11-16-123737_lukes-MacBook-Pro.crash
11/16/14 12:37:42.660 PM WindowServer[79]: CGXDisableUpdate: UI updates were forcibly disabled by application "iPhoto" for over 1.00 seconds. Server has re-enabled them.
11/16/14 12:37:43.632 PM WindowServer[79]: reenable_update_for_connection: UI updates were finally reenabled by application "iPhoto" after 1.97 seconds (server forcibly re-enabled them after 1.00 seconds)
11/16/14 12:37:50.783 PM WSDaemon[91822]: CGSRegisterConnectionNotifyProc called with invalid connection
11/16/14 12:38:09.909 PM Problem Reporter[91853]: launch_msg returned m -
Kernel panic-please help me decipher crash report
I recently experienced a kernel panic on my MacBook Pro (OS X version 10.9.5). Can anybody help me decipher what caused it and whether there's anything I could do to prevent future occurrences? Thanks in advance.
Anonymous UUID: 4CABCC7C-02A7-A534-BE98-7EEC1989E170
Mon May 4 04:29:47 2015
panic(cpu 0 caller 0xffffff802d6dc43e): Kernel trap at 0xffffff802da7f789, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x0000000000008010, CR3: 0x0000000010c78030, CR4: 0x00000000000606e0
RAX: 0x0000000000008010, RBX: 0xffffff8039cb35d0, RCX: 0x00000000031f0000, RDX: 0xffffff803fd0b880
RSP: 0xffffff8039cb3558, RBP: 0xffffff8039cb3580, RSI: 0x0000000000008010, RDI: 0xffffffffffffffff
R8: 0x0000000000000000, R9: 0x000000000000000b, R10: 0x0000000000000000, R11: 0xffffff8055256ea0
R12: 0xffffff8049655a50, R13: 0xffffff804c55d2d0, R14: 0xffffff8039cb35d0, R15: 0x000000000000000b
RFL: 0x0000000000010202, RIP: 0xffffff802da7f789, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x0000000000008010, Error code: 0x0000000000000002, Fault CPU: 0x0
Backtrace (CPU 0), Frame : Return Address
0xffffff8039cb31e0 : 0xffffff802d622f79
0xffffff8039cb3260 : 0xffffff802d6dc43e
0xffffff8039cb3430 : 0xffffff802d6f3976
0xffffff8039cb3450 : 0xffffff802da7f789
0xffffff8039cb3580 : 0xffffff802d9ba78e
0xffffff8039cb35a0 : 0xffffff802d7ca4b5
0xffffff8039cb3600 : 0xffffff802d7dc691
0xffffff8039cb3650 : 0xffffff802d7dbc30
0xffffff8039cb3690 : 0xffffff802d7e2cf0
0xffffff8039cb36c0 : 0xffffff802d7dab5f
0xffffff8039cb3780 : 0xffffff802d962204
0xffffff8039cb3890 : 0xffffff802d96a83b
0xffffff8039cb3a60 : 0xffffff802d7fd75b
0xffffff8039cb3ac0 : 0xffffff802d7d611b
0xffffff8039cb3b40 : 0xffffff802d7d5a74
0xffffff8039cb3c00 : 0xffffff802d7f1942
0xffffff8039cb3d80 : 0xffffff802d7e9bfc
0xffffff8039cb3f50 : 0xffffff802da40c63
0xffffff8039cb3fb0 : 0xffffff802d6f4176
BSD process name corresponding to current thread: mtmd
Mac OS version:
13F34
Kernel version:
Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64
Kernel UUID: 9477416E-7BCA-3679-AF97-E1EAAD3DD5A0
Kernel slide: 0x000000002d400000
Kernel text base: 0xffffff802d600000
System model name: MacBookPro8,1 (Mac-94245B3640C91C81)
System uptime in nanoseconds: 855993148177744
last loaded kext at 416759738631165: com.apple.iokit.IOSCSIBlockCommandsDevice 3.6.7 (addr 0xffffff7faf4cc000, size 81920)
last unloaded kext at 419065903612939: com.apple.iokit.IOUSBMassStorageClass 3.6.0 (addr 0xffffff7faf4bb000, size 69632)
loaded kexts:
org.virtualbox.kext.VBoxNetAdp 4.3.20
org.virtualbox.kext.VBoxNetFlt 4.3.20
org.virtualbox.kext.VBoxUSB 4.3.20
org.virtualbox.kext.VBoxDrv 4.3.20
com.apple.driver.AudioAUUC 1.60
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AGPM 100.14.34
com.apple.filesystems.autofs 3.0
com.apple.iokit.IOBluetoothSerialManager 4.2.7f3
com.apple.driver.AppleMikeyHIDDriver 124
com.apple.driver.AppleHDA 2.6.3f4
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.driver.AppleThunderboltIP 1.1.2
com.apple.driver.AppleBacklight 170.4.11
com.apple.driver.AppleMikeyDriver 2.6.3f4
com.apple.driver.AppleSMCLMU 2.0.4d1
com.apple.driver.ApplePolicyControl 3.6.22
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.7f3
com.apple.driver.AppleUpstreamUserClient 3.5.13
com.apple.driver.AppleMCCSControl 1.2.5
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleHWAccess 1
com.apple.driver.AppleSMCPDRC 1.0.0
com.apple.driver.AppleLPC 1.7.0
com.apple.driver.AppleIntelHD3000Graphics 8.2.4
com.apple.driver.AppleIntelSNBGraphicsFB 8.2.4
com.apple.driver.SMCMotionSensor 3.0.4d1
com.apple.driver.AppleUSBTCButtons 240.2
com.apple.driver.AppleUSBTCKeyboard 240.2
com.apple.driver.AppleIRController 325.7
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeLZVN 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 35
com.apple.iokit.SCSITaskUserClient 3.6.7
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.6.0
com.apple.driver.AppleUSBHub 683.4.0
com.apple.iokit.AppleBCM5701Ethernet 3.8.1b2
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleSDXC 1.5.2
com.apple.driver.AirPort.Brcm4331 700.20.22
com.apple.driver.AppleFWOHCI 5.0.2
com.apple.driver.AppleAHCIPort 3.0.5
com.apple.driver.AppleUSBEHCI 660.4.0
com.apple.driver.AppleACPIButtons 2.0
com.apple.driver.AppleRTC 2.0
com.apple.driver.AppleHPET 1.8
com.apple.driver.AppleSMBIOS 2.1
com.apple.driver.AppleACPIEC 2.0
com.apple.driver.AppleAPIC 1.7
com.apple.driver.AppleIntelCPUPowerManagementClient 217.92.1
com.apple.nke.applicationfirewall 153
com.apple.security.quarantine 3
com.apple.driver.AppleIntelCPUPowerManagement 217.92.1
com.apple.AppleGraphicsDeviceControl 3.6.22
com.apple.kext.triggers 1.0
com.apple.iokit.IOSerialFamily 10.0.7
com.apple.driver.DspFuncLib 2.6.3f4
com.apple.vecLib.kext 1.0.0
com.apple.iokit.IOAudioFamily 1.9.7fc2
com.apple.kext.OSvKernDSPLib 1.14
com.apple.iokit.IOSurface 91.1
com.apple.iokit.IOBluetoothFamily 4.2.7f3
com.apple.driver.AppleHDAController 2.6.3f4
com.apple.iokit.IOHDAFamily 2.6.3f4
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.driver.AppleGraphicsControl 3.6.22
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.2.7f3
com.apple.driver.AppleSMBusPCI 1.0.12d1
com.apple.driver.AppleSMBusController 1.0.12d1
com.apple.iokit.IOFireWireIP 2.2.6
com.apple.driver.IOPlatformPluginFamily 5.7.1d6
com.apple.iokit.IONDRVSupport 2.4.1
com.apple.iokit.IOGraphicsFamily 2.4.1
com.apple.driver.AppleSMC 3.1.8
com.apple.driver.AppleThunderboltDPInAdapter 3.1.7
com.apple.driver.AppleThunderboltDPAdapterFamily 3.1.7
com.apple.driver.AppleThunderboltPCIDownAdapter 1.4.5
com.apple.driver.AppleUSBMultitouch 240.10
com.apple.driver.AppleUSBMergeNub 650.4.0
com.apple.iokit.IOUSBHIDDriver 660.4.0
com.apple.driver.AppleUSBComposite 656.4.1
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.6.7
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOAHCISerialATAPI 2.6.1
com.apple.iokit.IOSCSIArchitectureModelFamily 3.6.7
com.apple.driver.AppleThunderboltNHI 2.0.1
com.apple.iokit.IOThunderboltFamily 3.3.1
com.apple.iokit.IOUSBUserClient 660.4.2
com.apple.iokit.IOEthernetAVBController 1.0.3b4
com.apple.driver.mDNSOffloadUserClient 1.0.1b5
com.apple.iokit.IO80211Family 640.36
com.apple.iokit.IONetworkingFamily 3.2
com.apple.iokit.IOFireWireFamily 4.5.5
com.apple.iokit.IOAHCIFamily 2.6.5
com.apple.iokit.IOUSBFamily 686.4.1
com.apple.driver.AppleEFINVRAM 2.0
com.apple.driver.AppleEFIRuntime 2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 278.11.1
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.AppleKeyStore 2
com.apple.driver.DiskImages 371.1
com.apple.iokit.IOStorageFamily 1.9
com.apple.iokit.IOReportFamily 23
com.apple.driver.AppleFDEKeyStore 28.30
com.apple.driver.AppleACPIPlatform 2.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.corecrypto 1.0
com.apple.kec.pthread 1Hi Eric,
Thank you for your reply. In the meanwhile, I did some research on kernel panics, and I figured the VirtualBox kernel extensions would be the obvious suspects. I find it odd, though, given that I wasn't running the VirtualBox app itself. To be sure, I just upgraded VirtualBox.
At any rate, let me explain in a little bit more detail the circumstances of the panic. I had had a Wolfram Mathematica notebook open for quite some time. The crash itself happened while I was browsing a pdf document in Google Chrome. After the panic, OS X automatically restarted and it could restore all windows and apps that were open before the panic, but something weird was happening: both Finder was unresponsive and I didn't have WiFi connection. I also noticed that Mathematica had 7 or 8 grayed-out, unresponsive windows open with the “hourglass” icon superimposed on each of them (not the beach ball, but the icon you usually see under the Apple logo upon startup), instead of the 2 and 3 windows Mathematica had open before the crash (notebook, message panel, and a toolbar). Once I force-quit Mathematica, Finder immediately became responsive again and the WiFi connection resumed.
Based on this weird experience, I have three—admittedly non-expert—hypotheses about what caused the panic:
1. Mathematica exhibited some idiosyncratic, one-time behavior that somehow caused a systemic failure. Perhaps some pathological interaction with the VirtualBox extensions?
2. RAM problems: five months ago, I upgraded the manufacturer-provided 2x2 GB RAM slots to 2x4 GB RAM slots I bought on Amazon (the model had very good reviews) after double-checking it would work with my MBP. Up until today the new RAM seemed to be working properly.
3. Other hardware problems: my MBP is not young (it's an early 2011 model that I bought more than 3.5 years ago), and there may be some mysterious HDD or other hardware failure that began to take its toll.
Given that I had never had kernel panics before and the horror stories I read about their frequent recurrences once they start, it would be very helpful for me to know what was the likely explanation for this panic and what steps I can make to prevent future occurrences. Do you think the description above points to a more definitive cause?
Thank you very much for your advice. -
Question
I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
'''(in English)'''Hi Danny,
Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
but not 180, right?
I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
=COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
or
=SUM(IIF(Fields!TICKET_STATUS=4,1,0))
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Hi,
I'm using below query in procedure.It's taking more more time can some one help to tune this query or advice to rewrite the query.
Databse :10.1
SELECT 'Reading Comprehension' TEST_NAME,T.TEST_END_DATE TEST_SESSION_DATE,
C.POOL_VERSION_ID, I.CREATED_ON POOL_CREATED_DT,
C.ITEM_ID, C.ITEM_RESPONSE_ID, S.STUDENT_ID_PK, C.RESPONSE_KEY, C.IS_CORRECT RESPONSE_IS_CORRECT,
T.SCORE SCALE_SCORE, C.RESPONSE_DURATION, P.ITEM_KEY,
T.TEST_SESSION_DETAIL_ID, SYSDATE CREATED_ON
-- BULK COLLECT INTO TV_PSYCHO_DET
FROM
CAT_ITEM_PARAMETER P, CAT_ITEM_USER_RESPONSE C, TEST_SESSION_DETAIL T,
TEST_SESSION S, ITEM_POOL_VERSION I, TEST_DETAIL D
,INSTITUTION E
WHERE TRUNC(T.TEST_END_DATE) BETWEEN TO_DATE('01-11-09','dd-mm-yy') AND TO_DATE('30-11-09','dd-mm-yy')
AND D.TEST_NAME = 'Reading Comprehension'
AND T.TEST_SESSION_STATUS_ID = 3
AND I.POOL_AVAILABILITY='Y'
AND P.PRETEST=0 AND C.RESTART_FLAG=0
AND T.TEST_DETAIL_ID = D.TEST_DETAIL_ID
AND S.TEST_SESSION_ID = T.TEST_SESSION_ID
AND C.TEST_SESSION_DETAIL_ID = T.TEST_SESSION_DETAIL_ID
AND S.INSTITUTION_ID=E.INSTITUTION_ID
AND SUBSTR(E.INSTITUTION_ID_DISPLAY,8,3) <> '000'
AND I.ITEM_ID = C.ITEM_ID
AND P.ITEM_ID = I.ITEM_ID;expln plan
Plan hash value: 3712814491
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart|
Pstop |
| 0 | SELECT STATEMENT | | 50857 | 7151K| 93382 (1)| 00:18:41 | |
|
|* 1 | FILTER | | | | | | |
|
|* 2 | HASH JOIN | | 50857 | 7151K| 93382 (1)| 00:18:41 | |
|
| 3 | PARTITION HASH ALL | | 2312 | 23120 | 25 (0)| 00:00:01 | 1 |
5 |
|* 4 | TABLE ACCESS FULL | CAT_ITEM_PARAMETER | 2312 | 23120 | 25 (0)| 00:00:01 | 1 |
5 |
|* 5 | HASH JOIN | | 94938 | 12M| 93356 (1)| 00:18:41 | |
|
|* 6 | TABLE ACCESS FULL | ITEM_POOL_VERSION | 9036 | 132K| 30 (0)| 00:00:01 | |
|
|* 7 | TABLE ACCESS BY GLOBAL INDEX ROWID | CAT_ITEM_USER_RESPONSE | 9 | 279 | 18 (0)| 00:00:01 | ROWID |
ROWID |
| 8 | NESTED LOOPS | | 45349 | 5270K| 93325 (1)| 00:18:40 | |
|
|* 9 | HASH JOIN | | 4923 | 423K| 11377 (1)| 00:02:17 | |
|
|* 10 | INDEX FAST FULL SCAN | INSTI_ID_NAME_COUN_DISP_IDX | 8165 | 111K| 18 (0)| 00:00:01 | |
|
|* 11 | HASH JOIN | | 4923 | 355K| 11359 (1)| 00:02:17 | |
|
|* 12 | TABLE ACCESS BY GLOBAL INDEX ROWID| TEST_SESSION_DETAIL | 4107 | 148K| 6804 (1)| 00:01:22 | ROWID |
ROWID |
| 13 | NESTED LOOPS | | 4923 | 278K| 6806 (1)| 00:01:22 | |
|
|* 14 | INDEX RANGE SCAN | TEST_DETAIL_AK_1 | 1 | 21 | 2 (0)| 00:00:01 | |
|
|* 15 | INDEX RANGE SCAN | TEST_SESSION_DETAIL_FK2_I | 39737 | | 102 (0)| 00:00:02 | |
|
| 16 | PARTITION HASH ALL | | 1672K| 25M| 4546 (1)| 00:00:55 | 1 |
5 |
| 17 | TABLE ACCESS FULL | TEST_SESSION | 1672K| 25M| 4546 (1)| 00:00:55 | 1 |
5 |
|* 18 | INDEX RANGE SCAN | CAT_ITEM_USER_RESP_IDX1 | 18 | | 3 (0)| 00:00:01 | |
|
Predicate Information (identified by operation id):
1 - filter(TO_DATE('01-11-09','dd-mm-yy')<=TO_DATE('30-11-09','dd-mm-yy'))
2 - access("P"."ITEM_ID"="I"."ITEM_ID")
4 - filter("P"."PRETEST"=0)
5 - access("I"."ITEM_ID"="C"."ITEM_ID")
6 - filter("I"."POOL_AVAILABILITY"='Y')
7 - filter(TO_NUMBER("C"."RESTART_FLAG")=0)
9 - access("S"."INSTITUTION_ID"="E"."INSTITUTION_ID")
10 - filter(SUBSTR("E"."INSTITUTION_ID_DISPLAY",8,3)<>'000')
11 - access("S"."TEST_SESSION_ID"="T"."TEST_SESSION_ID")
12 - filter(TRUNC(INTERNAL_FUNCTION("T"."TEST_END_DATE"))>=TO_DATE('01-11-09','dd-mm-yy') AND "T"."TEST_SESSION_STATUS_ID"=3
AND TRUNC(INTERNAL_FUNCTION("T"."TEST_END_DATE"))<=TO_DATE('30-11-09','dd-mm-yy'))
14 - access("D"."TEST_NAME"='Reading Comprehension')
15 - access("T"."TEST_DETAIL_ID"="D"."TEST_DETAIL_ID")
18 - access("C"."TEST_SESSION_DETAIL_ID"="T"."TEST_SESSION_DETAIL_ID")
43 rows selected.Edited by: user575115 on Dec 18, 2009 12:31 AMWhen you see something like ...
7 - filter(TO_NUMBER("C"."RESTART_FLAG")=0) It means that Oracle had to do a conversion for you since you aren't using the proper data type in your query.
That would mean IF there is an index on that column, it won't be useable... -
on my macbook pro when opening a page on safaryi can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success?
Just select Print in Safari and then, in the bottom left-hand corner, select PDF and you can save it to whichever flavor pdf file you like.
Clinton -
Can someone pls help me with this code
The method createScreen() creates the first screen wherein the user makes a selection if he wants all the data ,in a range or single data.The problem comes in when the user makes a selection of single.that then displays the singleScreen() method.Then the user has to input a key data like date or invoice no on the basis of which all the information for that set of data is selected.Now if the user inputs a wrong key that does not exist for the first time the program says invalid entry of data,after u click ok on the option pane it prompts him to enter the data again.But since then whenever the user inputs wrong data the program says wrong data but after displaying the singlescreen again does not wait for input from the user it again flashes the option pane with the invalid entry message.and this goes on doubling everytime the user inputs wrong data.the second wrong entry of data flashes the error message twice,the third wrong entry flashes the option pane message 4 times and so on.What actually happens is it does not wait at the singlescreen() for user to input data ,it straight goes into displaying the JOptionPane message for wrong data entry so we have to click the optiion pane twice,four times and so on.
Can someone pls help me with this!!!!!!!!!
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import java.text.*;
import java.util.*;
public class MainMenu extends JFrame implements ActionListener,ItemListener{
//class
FileReaderDemo1 fd=new FileReaderDemo1();
FileReaderDemo1 fr;
Swing1Win sw;
//primary
int monthkey=1,counter=0;
boolean flag=false,splitflag=false;
String selection,monthselection,dateselection="01",yearselection="00",s,searchcriteria="By Date",datekey,smonthkey,invoiceno;
//arrays
String singlesearcharray[];
String[] monthlist={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"};
String[] datelist=new String[31];
String[] yearlist=new String[100];
String[] searchlist={"By Date","By Invoiceno"};
//collection
Hashtable allinvoicesdata=new Hashtable();
Vector data=new Vector();
Enumeration keydata;
//components
JButton next=new JButton("NEXT>>");
JComboBox month,date,year,search;
JLabel bydate,byinvno,trial;
JTextField yeartext,invtext;
JPanel panel1,panel2,panel3,panel4;
JRadioButton single,range,all;
ButtonGroup group;
JButton select=new JButton("SELECT");
//frame and layout declarations
JFrame jf;
Container con;
GridBagLayout gridbag=new GridBagLayout();
GridBagConstraints gc=new GridBagConstraints();
//constructor
MainMenu(){
jf=new JFrame();
con=getContentPane();
con.setLayout(null);
fr=new FileReaderDemo1();
createScreen();
setSize(500,250);
setLocation(250,250);
setVisible(true);
//This is thefirst screen displayed
public void createScreen(){
group=new ButtonGroup();
single=new JRadioButton("SINGLE");
range=new JRadioButton("RANGE");
all=new JRadioButton("ALL");
search=new JComboBox(searchlist);
group.add(single);
group.add(range);
group.add(all);
single.setBounds(100,50,100,20);
search.setBounds(200,50,100,20);
range.setBounds(100,90,100,20);
all.setBounds(100,130,100,20);
select.setBounds(200,200,100,20);
con.add(single);
con.add(search);
con.add(range);
con.add(all);
con.add(select);
search.setEnabled(false);
single.addItemListener(this);
search.addActionListener(new MyActionListener());
range.addItemListener(this);
all.addItemListener(this);
select.addActionListener(this);
public class MyActionListener implements ActionListener{
public void actionPerformed(ActionEvent a){
JComboBox cb=(JComboBox)a.getSource();
if(a.getSource().equals(month))
monthkey=((cb.getSelectedIndex())+1);
if(a.getSource().equals(date)){
dateselection=(String)cb.getSelectedItem();
if(a.getSource().equals(year))
yearselection=(String)cb.getSelectedItem();
if(a.getSource().equals(search)){
searchcriteria=(String)cb.getSelectedItem();
public void itemStateChanged(ItemEvent ie){
if(ie.getItem()==single){
selection="single";
search.setEnabled(true);
else if (ie.getItem()==all){
selection="all";
search.setEnabled(false);
else if (ie.getItem()==range){
search.setEnabled(false);
public void actionPerformed(ActionEvent ae){
if(ae.getSource().equals(select))
if(selection.equals("single")){
singleScreen();
if(selection.equals("all"))
sw=new Swing1Win();
if(ae.getSource().equals(next)){
if(monthkey<9)
smonthkey="0"+monthkey;
System.out.println(smonthkey+"/"+dateselection+"/"+yearselection+"it prints this");
allinvoicesdata=fr.read(searchcriteria);
if (searchcriteria.equals("By Date")){
System.out.println("it goes in this");
singleinvoice(smonthkey+"/"+dateselection+"/"+yearselection);
else if (searchcriteria.equals("By Invoiceno")){
invoiceno=invtext.getText();
singleinvoice(invoiceno);
if (flag == false){
System.out.println("flag is false");
singleScreen();
else{
System.out.println("its in here");
singlesearcharray=new String[data.size()];
data.copyInto(singlesearcharray);
sw=new Swing1Win(singlesearcharray);
public void singleinvoice(String searchdata){
keydata=allinvoicesdata.keys();
while(keydata.hasMoreElements()){
s=(String)keydata.nextElement();
if(s.equals(searchdata)){
System.out.println(s);
flag=true;
break;
if (flag==true){
System.out.println("vector found");
System.exit(0);
data= ((Vector)(allinvoicesdata.get(s)));
else{
JOptionPane.showMessageDialog(jf,"Invalid entry of date : choose again");
public void singleScreen(){
System.out.println("its at the start");
con.removeAll();
SwingUtilities.updateComponentTreeUI(con);
con.setLayout(null);
counter=0;
panel2=new JPanel(gridbag);
bydate=new JLabel("By Date : ");
byinvno=new JLabel("By Invoice No : ");
dateComboBox();
invtext=new JTextField(6);
gc.gridx=0;
gc.gridy=0;
gc.gridwidth=1;
gridbag.setConstraints(month,gc);
panel2.add(month);
gc.gridx=1;
gc.gridy=0;
gridbag.setConstraints(date,gc);
panel2.add(date);
gc.gridx=2;
gc.gridy=0;
gc.gridwidth=1;
gridbag.setConstraints(year,gc);
panel2.add(year);
bydate.setBounds(100,30,60,20);
con.add(bydate);
panel2.setBounds(170,30,200,30);
con.add(panel2);
byinvno.setBounds(100,70,100,20);
invtext.setBounds(200,70,50,20);
con.add(byinvno);
con.add(invtext);
next.setBounds(300,200,100,20);
con.add(next);
if (searchcriteria.equals("By Invoiceno")){
month.setEnabled(false);
date.setEnabled(false);
year.setEnabled(false);
else if(searchcriteria.equals("By Date")){
byinvno.setEnabled(false);
invtext.setEnabled(false);
monthkey=1;
dateselection="01";
yearselection="00";
month.addActionListener(new MyActionListener());
date.addActionListener(new MyActionListener());
year.addActionListener(new MyActionListener());
next.addActionListener(this);
invtext.addKeyListener(new KeyAdapter(){
public void keyTyped(KeyEvent ke){
char c=ke.getKeyChar();
if ((c == KeyEvent.VK_BACK_SPACE) ||(c == KeyEvent.VK_DELETE)){
System.out.println(counter+"before");
counter--;
System.out.println(counter+"after");
else
counter++;
if(counter>6){
System.out.println(counter);
counter--;
ke.consume();
else
if(!((Character.isDigit(c) || (c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)))){
getToolkit().beep();
counter--;
JOptionPane.showMessageDialog(null,"please enter numerical value");
ke.consume();
System.out.println("its at the end");
public void dateComboBox(){
for (int counter=0,day=01;day<=31;counter++,day++)
if(day<=9)
datelist[counter]="0"+String.valueOf(day);
else
datelist[counter]=String.valueOf(day);
for(int counter=0,yr=00;yr<=99;yr++,counter++)
if(yr<=9)
yearlist[counter]="0"+String.valueOf(yr);
else
yearlist[counter]=String.valueOf(yr);
month=new JComboBox(monthlist);
date=new JComboBox(datelist);
year=new JComboBox(yearlist);
public static void main(String[] args){
MainMenu mm=new MainMenu();
public class WindowHandler extends WindowAdapter{
public void windowClosing(WindowEvent we){
jf.dispose();
System.exit(0);
}Hi,
I had a similar problem with a message dialog. Don't know if it is a bug, I was in a hurry and had no time to search the bug database... I found a solution by using keyPressed() and keyReleased() instead of keyTyped():
private boolean pressed = false;
public void keyPressed(KeyEvent e) {
pressed = true;
public void keyReleased(KeyEvent e) {
if (!pressed) {
e.consume();
return;
// Here you can test whatever key you want
//...I don't know if it will help you, but it worked for me.
Regards. -
hello,
i restored and updated my iphone 4 to the latest version of 5.1.1 and after that when i connect my mobile to i tunes all i see is a big rectangle and a apple logo on left and a small lock on right side please help me fix this problem.I sloved this issue by resting my phone from settings>general>reset>reset all settings...the problem will be fixed
-
my ipod touch 1st gen has gone into recovery and wont restore because of a error 1 or something like that can someone help me quick this ipod is my little cousins and i dont want her mum to find out what happend
I have not seen a solution for error (1)
make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar
Maybe you are looking for
-
DMEE tab-delimited file required
Dear Experts with trx DMEE you define file formats to be used as payment medium on screen 'format attributes' you indicate if fields have a fixed length or are delimited with a character what to do when you want to have a tab-delimited file? Regards
-
Troubles with printing text document exported to pdf (edited)
Hello, I've exported a text document from pages to pdf. When I open it with adobe reader everything it's ok. But when then I try to print the pdf file a small dots grid on the background appears on the paper sheets. Can someone tell me what can I do
-
Lync uninstall/install Issue 2013
Hi, Our office has converted over to Office365 E1. My problem is on one of our machines the Lync install was working just fine then one day something occurred and the install no longer works. If one clicks on the icon in start menu a error flies up t
-
Dummy: Illustrator.exe - Fatal Application Exit
Recently purchased and installed CS4 Web Premium. Launch Illustrator CS4 Click Open on welcome Screen Illustrator Crashes with this error: Dummy:Illustrator.exe Fatal Application Exit The specified module could not be found. C:\Program Files (x86)\Co
-
Safari Cleanup Utilities???
Hi, We were discussing on a different discussion thread about the various OSx cleanup utilities, and how basically these third party products cannot be really trusted. Just out of interest I did a live chat with a guy from Micro Smith and asked about