External iSight -- not "alive" after logging out
Following years of very satisfactory iChat use on Tiger.... and after Leopard updating: Whenever I close iChat and reopen, I find that my iSight camera has been lost. If I disconnect the firewire and reconnect, it is found again. But, I have to continuously repeat this scenario whenever I use iChat AV.
Thoughts anyone??
Thanks,
JK
Hello JK,
If you used Mac's automatic Software Update... to get to 10.5.1, try this:
• Repair permissions.
• Download and install the Mac OS X 10.5.1 Update.
• Repair permissions again after the restart that completes the install.
• Test to see if problem is still there.
If problem exists, try suggestions relevant to your system from Apple's How to Troubleshoot iSight.
EZ Jim
PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.1) External iSight
Similar Messages
-
ITunes preferences not saved after logging out.
iTunes preferences not saved when logging out. Using iTunes11.0.4.4 Preferences are not saved when logging back in. Is this a bug or is there a file or registry key I need to fix?
ThanksHello JK,
If you used Mac's automatic Software Update... to get to 10.5.1, try this:
• Repair permissions.
• Download and install the Mac OS X 10.5.1 Update.
• Repair permissions again after the restart that completes the install.
• Test to see if problem is still there.
If problem exists, try suggestions relevant to your system from Apple's How to Troubleshoot iSight.
EZ Jim
PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.1) External iSight -
Sgd client does not close after logging out of sgd on windows vista
Hi,
I have a scenario wherein I find that the sgd client in the system tray does not close even after logging out of sgd (using the browser).
We are using sgd 4.3.1
Is this a known issue.
Thanks,Well, after searching every where, somewhere (not sure where now) I saw the suggestion to turn off bluetooth and NFC. I turned off both and it *seems* like the issue may be corrected. But what if I want touse a BT device, I guess I am stuck?
As to your questions, I my have changed to a larger mouse cursor, either that or the default cursor.
I think I may have had "mouse trails" clicked, not sure if that it the same as a mouse shadow? Neither ofthese options seem to make a difference.
I had a standard Windows provided background for use, no personal photos.
Hopefully this partial fix (turning off the other settings) helps someone else. It seems to have fixed the problem for me, at least in the last 3-4 days since switching I have not noted a return of the problem.
Dragon-Fur wrote:
I wish I were writing with a fix. I, too, have a new X2 -- I like it very much. I have not seen what you describe.
Instead, I have more questions; I am intrigued. I wonder if the way in which you have the system set is having an affect on the way it is behaving.
Do you see the problem regardless of which mouse pointer you set?
There are a variety of choices -- I use an extra large white arrow most of the time; sometimes I switch to a black cursor just for grins. You can change the selectors, too. Right-Click on the Background Screen and click Personalize ...
Are you using the entirely useless, but oh-so-pretty "mouse shadow"?
I am wondering if changing the pointer has had any effect on the disappearing act.
What about the background? Are you using a personal photo? Lots of colors? Does changing the background make any difference? -
Xfce4 not starting after log out
Installed Archlinux distro and Xfce4 via pacman went fine installed a couple more apps (webbrowser, email, irc, wine, extra fonts, etc..) now i log out and when i try to log in (either root and normal user) i briefly see a crusor from the xfce desktop environnemnt and then it goes back to the prompt :
waiting for x server to shut down xfce-mcs-manager : Fatal IO error 11 (resource temporarily unavailable) on X server :0.0.
xfwm4: fatal error 11 (resource temporarily unavailable) on x server :0.0.
FreeFonPath: FPE "usr/share/fonts/misc" refcount is 2, should be 1 ; fixing.
Now i tried #startx and entered #startxfce4 in a xterm and it worked!!?
Any idea what could be going wrong here?
EDIT: ok turns out i CANT start X as root but there's no problem as a normal user. However, while in X i can switch to root no problem via console and open Xfce
I seriously need help here i'm confused
Last edited by Shininggg (2008-03-17 10:10:30)Misfit138 wrote:If you want to enter an Xfce session as root (I don't understand why you would), you must configure the root user's ~/.xinitrc.
If you want to simply run X apps as root in a non-root user's session, (smarter alternative) see here: http://wiki.archlinux.org/index.php/Run … ps_as_root
No no! i don't want to log a session as root
bgc1954 wrote:Check your /etc/inittab to see on the bottom line if anything is uncommented and also what runlevel you are booting into id:5 is what you want with a login manager.
# /etc/inittab
# Runlevels:
# 0 Halt
# 1(S) Single-user
# 2 Not used
# 3 Multi-user
# 4 Not used
# 5 X11
# 6 Reboot
## Only one of the following two lines can be uncommented!
# Boot to console
id:3:initdefault: (so i should put a # in front of this one?)
# Boot to X11
#id:5:initdefault: (and remove # the one here?)
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux
c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Example lines for starting a login manager
x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/opt/kde/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >& /dev/null
# End of file
+ i have no xinitrc file in my /home/username, all i have is desktop. I just make this file with exec startxfce4 with nano or do i need to copy some other file and add it to it?
Note : And turns out that after a maintenance shutdown, i logged in as a normal user and type "startxfce4" and all went ok which is weird because i've trying to reboot and enter a xfce4 session all night...
Is there any way to go into standby mode for now until the issue is fix?? i don't have the option when i click on the icon and i don't know the command.... (this is an old laptop and the hdd is really annoying so just i just want to shut it down !!)
Last edited by Shininggg (2008-03-17 17:25:55) -
Input source settings not retained after log out/restart
Hi,
This was happening in Mavericks as well, and I have just upgraded to 10.10.1 hoping it would solve the issue.
I frequently need two input sources (US and Czech QWERTY Keybaords) for my workflow. But everytime I logout or restart, the computer resets the input source to Czech (not QWERTY). I have never selected this keyboard, but it always resets to this default.
Is there a plsit file or something I can delete? I bought the computer used from a friend in the Czech Republic, but I am Aermican and would prefer default system languages and keyboards to be US English. I do, however, need the region settings set to Czech Republic as that's where I work. So, calendar, numbers, currency etc. should be Czech, but all other system language US English.
Thanks for any help.Its OK
Updating the driver worked, seems it wasnt binding the NVIDIA Config to the xserver -
New to the Apple and I want to set up a user account that will not delete the guest users files and allow and preserve their personal settings after log out. Is this possible?
The built-in guest user account will not do this. Simply create a new standard account and call it "Guest" or "Guest Users" or whatever you like.
Go to System Preferences > Users& Groups, click "+" to make a new account. -
After Time Machine backs up my file vault files (after logging out), when I next log into the user account it beachballs permanently during log in. The backup was successful, as I had to restore after this issue last time. Hard resetting doesn't resolve the issue. Is there a Time Machine setting that I should be aware of?
I have 2011 13" MBP, 10.6.8 and use an external hard drive connected via USB for my Time Machine backups.
ThanksI was able to get it to work. Thanks for your help. It's unfortunate the two applications do not work well together. This is what I did:
1) Safe boot and logged into the affected user (since the whole issue damaged the account's system settings).
2) Turned off File Vault in System Preferences. I needed to make some space on the hard drive first since apparently the total free space on the hard drive has to equal or exceed the amount of data currently in the file vault. I deleted some files and moved others to the Admin account. This whole process took awhile.
3) Finally, just restarted and logged in. The next time machine backup seems to be a significant backup, I assume because it's backing up the user account in a different way now that File Vault is turned off.
Thanks again! -
External iSight not working on iMac, works on Macbook despite same software
Hello!
I have an External iSight that when I plug into my Macbook (running latest Mac OS) works just fine with iChat AND Adobe Flash Webchats...
However, when I plug it into my new iMac, the green light will turn on, but the it doesn't show on ANY applications that there is an External iSight available.
The only difference is that I am connecting the iSight with an 4 to 8 pin adapter: When I plug it in, it acts the same as it does with the MacBook--the green light turns on, it makes a sound, and is ready for usage. However, I can't get it to work with any programs on my iMac.
My PRIMARY concern, is I need it to work with Adobe Flash Webchats. Help!Hello, macboyme
Consider the following in any order you find relevant for your system:
(0) You write that you are using a 4pin to 8pin adapter. However, I think you mean 6pin to 9pin adapter.
External iSight is a Firewire device that uses a 6pin Firewire 400 connector.
Newer Macs have only 9pin Firewire 800 connectors, so it is common to use 6pin to 9pin adapters similar to the one I normally use:
http://eshop.macsales.com/item/Newer%20Technology/FIR1369AD/
The only 8 pin cables and adapters I could find were USB. They won't work on Firewire devices.
4pin Firewire is a mini connection that I have only seen in cameras. If you really are using a 4 and/or 8 pin cable, I suggest you try a different Firewire adapter method.
My suggestions below are based on using a 6pin to 9pin adapter like that mentioned above or cable like this one I have also successfully used:
http://store.apple.com/us/product/TP320LL/A
(1) Test in another User Account on your iMac. Be sure to also consider all the other suggestions for external iSight from:
http://support.apple.com/kb/HT2090
You do not say which of your Macs has only FW800 ports that require a Firewire adapter. To remove as many variables as possible, test the same cables and Firewire 400-800 adapter on both Macs if it is possible to do so. If you only use the adapter on one Mac, it is possible that the adapter is the cause of your trouble. If one of your Macs has only FW400 and the other has only FW800, test with a different adapter or use a 6pin-9pin cable to test both your Firewire iSight. Also, test another Firewire 400 device to eliminate the possibility that your problem is caused by one of your connections.
(2) For additional ideas on how to test external iSight, consider the additional suggestions here:
http://www.ralphjohns.co.uk/EZJim/EZJimpage4.html
Unless the software and connected peripherals are EXACTLY the same on both your iMac and your MacBook, be sure to consider possible hardware or software conflicts with something else installed in or connected to your iMac. A link to more info about conflicts is included in the "How to test..." page.
(3) If you can rule out both possible conflicts and connection problems in the iMac, the problem must be either in your iMac's user account or in the system software used to operate your external iSight.
You can rule out problems with the user account by testing in several different accounts.
If the problem is EXACTLY the same in any user account you test on your iMac, your system software is suspect. Backup all your important files, repair permissions, and apply the 10.6.4 Combo Update:
http://support.apple.com/kb/DL1048
Follow the restart that completes the Combo Update with another permissions repair. Then test iSight again.
(4) Once your external iSight works correctly with your iMac's QuickTimeX, iChat, etc., it will work as well with Flash video websites as it does when you are running it from your MacBook.
EZ Jim
Mac Pro Quad Core (Early 2009) 2.93Ghz w/Mac OS X (10.6.4) MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.4)
LED Cinema Display G4 PowerBook 1.67GHz (10.4.11) iBookSE 366MHz (10.3.9) External iSight -
How to prevent Spaces from creating a new session after logging out
Hi,
I'm using WebCenter Spaces (11.1.1.4), and I notice that the user is redirected to the landing page after logging out which causes a new HTTP session to be created. I'd like to avoid this behavior, and I was told that this could be done by creating a custom logout page with pure HTML and redirect the user there upon logout. How do I go about doing this? I couldn't find anything related to this in the documentation.
Thanks,
RobertWhat's wrong with a new session?
When you logout, the current session will be destroyed so it's just normal that he creates a new webcenter that does not contain a user credential. -
My Imac recently gives a message "you need to restart your computer" after logging out and clicking "sleep". After a few seconds, gray screeen will roll down and give that messasge. I disconnected USB cable from my printer. Today, after turning it on, the log in screen showed then after 2 seconds the gray screen rolled down again and prompted "you need to restart the computer". I've read the apple communities about kernel panics but to no success. I have a 10.6.8, 2.7 ghz, 4GB. This is the error that showed which I reported to apple mutiple times already.
Panics Since Last Report: 4
Anonymous UUID: 522B583E-D9D7-463D-B57E-6849A69E41D9
Wed Jan 22 11:52:33 2014
panic(cpu 0 caller 0xffffff80002d1208): Kernel trap at 0xffffff7f80e2750d, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x00000000000001e0, CR3: 0x0000000000100000, CR4: 0x0000000000040660
RAX: 0x000000000000000a, RBX: 0x00000000000001e0, RCX: 0x0000000001000000, RDX: 0x0000000000000000
RSP: 0xffffff805e413eb0, RBP: 0xffffff805e413f10, RSI: 0x00000000000000dd, RDI: 0xffffff800b3eb7e0
R8: 0x0000000000000003, R9: 0x0000000000000001, R10: 0x0000000000000007, R11: 0x0000000000000051
R12: 0x000000000000000a, R13: 0xffffff804aa59004, R14: 0xffffff800d15f1b4, R15: 0x0000000000000000
RFL: 0x0000000000010202, RIP: 0xffffff7f80e2750d, CS: 0x0000000000000008, SS: 0x0000000000000010
Error code: 0x0000000000000000
Backtrace (CPU 0), Frame : Return Address
0xffffff805e413b50 : 0xffffff8000204d15
0xffffff805e413c50 : 0xffffff80002d1208
0xffffff805e413da0 : 0xffffff80002e3f4a
0xffffff805e413db0 : 0xffffff7f80e2750d
0xffffff805e413f10 : 0xffffff7f80e7f7d3
0xffffff805e413f30 : 0xffffff800053e46d
0xffffff805e413f60 : 0xffffff8000285b66
0xffffff805e413fa0 : 0xffffff80002c8527
Kernel Extensions in backtrace (with dependencies):
com.apple.driver.AirPort.Atheros9388(426.35.3)@0xffffff7f80e1c000->0xffffff7f80 f66fff
dependency: com.apple.iokit.IOPCIFamily(2.6.8)@0xffffff7f80804000
dependency: com.apple.iokit.IO80211Family(320.1)@0xffffff7f80df7000
dependency: com.apple.iokit.IONetworkingFamily(1.10)@0xffffff7f80ddd000
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:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64
System model name: iMac12,2 (Mac-942B59F58194171B)
System uptime in nanoseconds: 4614091555750
unloaded kexts:
com.apple.driver.AppleUSBUHCI 4.2.5 (addr 0xffffff7f80969000, size 0x65536) - last unloaded 128892379106
loaded kexts:
com.apple.filesystems.afpfs 9.7.1 - last loaded 1016854024083
com.apple.nke.asp_tcp 5.0
com.apple.filesystems.smbfs 1.6.7
com.apple.filesystems.autofs 2.1.0
com.apple.driver.AGPM 100.12.31
com.apple.driver.AppleHWSensor 1.9.3d0
com.apple.driver.AudioAUUC 1.57
com.apple.driver.AppleUpstreamUserClient 3.5.7
com.apple.driver.AppleMikeyHIDDriver 1.2.0
com.apple.driver.AppleMCCSControl 1.0.26
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleMikeyDriver 2.0.8f3
com.apple.kext.ATIFramebuffer 6.4.2
com.apple.driver.AppleIntelHDGraphics 6.4.2
com.apple.driver.AudioIPCDriver 1.1.6
com.apple.driver.AppleHDA 2.0.8f3
com.apple.ATIRadeonX3000 6.4.2
com.apple.iokit.AppleBCM5701Ethernet 3.0.8b2
com.apple.driver.AirPort.Atheros9388 426.35.3
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.0a1
com.apple.driver.AppleLPC 1.5.1
com.apple.driver.AppleBacklight 170.0.48
com.apple.kext.AppleSMCLMU 1.5.2d10
com.apple.driver.AppleIntelSNBGraphicsFB 6.4.2
com.apple.driver.AppleBluetoothMultitouch 54.3
com.apple.driver.AppleUSBCardReader 2.6.1
com.apple.driver.AppleIRController 303.8
com.apple.iokit.SCSITaskUserClient 2.6.9
com.apple.iokit.IOAHCIBlockStorage 1.6.6
com.apple.driver.AppleFWOHCI 4.7.7
com.apple.driver.AppleUSBHub 4.2.5
com.apple.BootCache 31.1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.driver.AppleEFINVRAM 1.4.0
com.apple.driver.AppleAHCIPort 2.2.0
com.apple.driver.AppleUSBEHCI 4.2.6
com.apple.driver.AppleACPIButtons 1.3.6
com.apple.driver.AppleRTC 1.3.1
com.apple.driver.AppleHPET 1.5
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.8f3
com.apple.iokit.IOAudioFamily 1.8.3fc2
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.driver.AppleBluetoothHIDKeyboard 141.5
com.apple.driver.AppleHIDKeyboard 141.5
com.apple.iokit.IOFireWireIP 2.0.4
com.apple.iokit.AppleProfileFamily 41
com.apple.driver.AppleHDAController 2.0.8f3
com.apple.iokit.IOHDAFamily 2.0.8f3
com.apple.driver.ApplePolicyControl 3.0.17
com.apple.driver.AppleGraphicsControl 3.0.17
com.apple.iokit.IO80211Family 320.1
com.apple.iokit.IONetworkingFamily 1.10
com.apple.driver.IOPlatformPluginFamily 4.7.0a1
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleBacklightExpert 1.0.2
com.apple.iokit.IONDRVSupport 2.2.1
com.apple.driver.AppleSMC 3.1.0d5
com.apple.driver.AppleThunderboltEDMSink 1.1.3
com.apple.driver.AppleThunderboltEDMSource 1.1.3
com.apple.kext.ATI6000Controller 6.4.2
com.apple.kext.ATISupport 6.4.2
com.apple.iokit.IOGraphicsFamily 2.2.1
com.apple.driver.IOBluetoothHIDDriver 2.4.5f3
com.apple.driver.AppleMultitouchDriver 207.11
com.apple.driver.AppleThunderboltDPOutAdapter 1.5.9
com.apple.driver.AppleThunderboltDPInAdapter 1.5.9
com.apple.driver.AppleThunderboltDPAdapterFamily 1.5.9
com.apple.driver.AppleThunderboltPCIDownAdapter 1.2.1
com.apple.iokit.IOUSBMassStorageClass 2.6.7
com.apple.iokit.IOSCSIBlockCommandsDevice 2.6.9
com.apple.iokit.IOUSBHIDDriver 4.2.5
com.apple.driver.BroadcomUSBBluetoothHCIController 2.4.5f3
com.apple.driver.AppleUSBBluetoothHCIController 2.4.5f3
com.apple.iokit.IOBluetoothFamily 2.4.5f3
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.9
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.9
com.apple.driver.AppleThunderboltNHI 1.3.2
com.apple.iokit.IOThunderboltFamily 1.7.4
com.apple.driver.AppleUSBMergeNub 4.2.5
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOFireWireFamily 4.2.7
com.apple.iokit.IOUSBUserClient 4.2.4
com.apple.iokit.IOAHCIFamily 2.0.7
com.apple.iokit.IOUSBFamily 4.2.6
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.8
com.apple.iokit.IOACPIFamily 1.3.0
Model: iMac12,2, BootROM IM121.0047.B1F, 4 processors, Intel Core i5, 2.7 GHz, 4 GB, SMC 1.72f1
Graphics: AMD Radeon HD 6770M, AMD Radeon HD 6770M, PCIe, 512 MB
Memory Module: global_name
Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 0 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: ST31000528AS, 931.51 GB
Serial ATA Device: OPTIARC DVD RW AD-5680H
USB Device: FaceTime HD Camera (Built-in), 0x05ac (Apple Inc.), 0x850b, 0xfa200000 / 3
USB Device: Hub, 0x0424 (SMSC), 0x2514, 0xfa100000 / 2
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000 / 4
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8215, 0xfa111000 / 6
USB Device: Hub, 0x0424 (SMSC), 0x2514, 0xfd100000 / 2
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0xfd120000 / 4
USB Device: Internal Memory Card Reader, 0x05ac (Apple Inc.), 0x8403, 0xfd110000 / 3
What is going on with this error?It hasn't been acting up since I:
1) Since I unplug my all in one printer with wifi (Hewlett Packard). I barely use the printer and it keeps cleaning out the jets and wasting my **** ink. Plus it'll do a loud self test @ 3:00 in the morning & by this time, I pulled my baseball bat from under the bed and ready to smash some skulls in the office room thinking its a burglar.
But seriously it stop doing it.
This is a late reply but confirmed after 7 months.
Note: I shut down instead of sleep my Imac now because I hardly use it. -
Preventing the User from going back to the main page after logging out.
Hi all,
In my project I want to prevent the User from going back to the Main page, by clicking the back button of the browser, after the user has loggged out.I had invalidated the session so the user will not be able to do any operations, but he can vew the infos. I want to redirect to the login page if the user tries to go back using the back button after he has logged out.
I tried the same in this forum after loging out. Surprisingly it is the same. I can browse through all the operations i did even after logging out from here.
Is it not possible to do that in Servlets?Could somebody help?
Thanks,
Zach.Hi,
You can use a servlet filter to do this , as it can interceptany request to your application you can decide to allow user access or not to any page/servlet.
public class Test implements Filter{
public void destroy() {
public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2) throws IOException,
ServletException {
System.out.println("filter");
HttpServletRequest request = (HttpServletRequest) arg0;
if(!request.getRequestURI().contains("index")){ // set condition that will be checked to verify if the user is logged in
System.out.println("redirecting ... ");
RequestDispatcher d = arg0.getRequestDispatcher("/index.jsp");
d.forward(arg0, arg1);
arg2.doFilter(arg0, arg1);
public void init(FilterConfig arg0) throws ServletException {
}in you web.xml add :
<filter>
<filter-name>test</filter-name>
<filter-class>test.Test</filter-class>
</filter>
<filter-mapping>
<filter-name>test</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> -
Avoid browser caching after log out
Hi all
Once i logout. i am able to go in to the application using the browser back button .
how to restrict this back action after log out .
i tried with the header
session.invalidate();
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.setDateHeader("Expires", 0);
response.setHeader("Pragma","no-cache");
but dint help me .
also tried with
javascript:window.history.forward(-1);
it also dint work .
my browser is Firefox/3.0.13
any suggestions.hi
once i click on logout link .it reaches to my servlet and there i am setting the header and then forwarding to the login page again.
so i dint understand " you should disable caching at the top of your views"
can u please explain it.
public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException
HttpSession session = request.getSession(true);
session.removeAttribute("flag");
session.invalidate();
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.setDateHeader("Expires", 0);
response.setHeader("Pragma","no-cache");
System.out.println("i have reached here ");
dispatcher = getServletContext().getRequestDispatcher("/index.jsp");
dispatcher.forward(request, response);
}i tried putting the above header lines in jsp also ...
but the result is same it allowed me to navigate in to the application using back button .
I have googled for a solution ...but was not able to land with a solution .
Kindly suggest
Thanks in advance -
After logging out of mozilla firefox i cannot log back in to mozilla firefiox , why ?
after logging out of Mozilla Firefox
I can't log back in
why ?
please help meThis just happened to me too. But I've been on iTunes Match for several months now. I've had the problem several times before where ITM says something's "not available at this time; try again later," and at those times I've had to sign out of my iTunes Store account and back in for ITM to work again.
But this time, when I tried to turn on iTunes Match again, I got this error (on my screen right now):
iTunes match is matching a library from another computer. Only one library can be matched at a time. If you continue, the other iTunes Match session will be stopped and this computer's library will be matched instead. Buttons: [Cancel] [Match this computer]
Well, I surely do NOT want to "Match this computer", as I have several thousand songs in iCloud that are NOT on this computer!
What is going on??? -
How to stop the gray wheel from spinning after logging out
how to stop the gray wheel from spinning after logging out?
Frank ...
Make sure to quit all open applications before logging out.
Your proflie indicates your Mac has v10.7.1 installed.
If that is the case, updating your system software will help as far as functionaly as well as security.
Install the OS X Lion Update 10.7.5 (Client Combo)
Then restart your Mac.
message edited by: cs -
Getting Error 500 when pressing the backbutton of the browser after log out
I am working on a web project , and am using AJAX in my application. I need to get list of templates and events stored in the database when my page is being loaded so im using AJAX. the problem is, when i press the logout in my page and after logging out if i press the browsers back button then im getting the Http Error 500.
Regarding this issue i previously also posted but i havent get solved my problem. (may be i havent posted my source code , rather i just posted error message.).
Here is the error message of the browser,
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
com.koffee.eon.subscriber.action.TemplateNames.doPost(TemplateNames.java:66)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)
Here is my source code of the TemplateNames class,
package com.koffee.eon.subscriber.action;
import com.koffee.eon.subscriber.persistence.*;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.text.SimpleDateFormat;
import java.util.*;
public class TemplateNames extends HttpServlet {
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String html="",html1="";
HttpSession session=request.getSession();
UserCompleteDetails sessionDetails=(UserCompleteDetails)session.getAttribute("userdetails");
System.out.println("checking session after logout"+sessionDetails);
if(sessionDetails==null)
System.out.println("session details in if condition is:"+sessionDetails);
response.sendRedirect("/login.jsp");
System.out.println("after checking "+sessionDetails);
String type=null;
type=request.getParameter("type");
String subscriberUserEONId=sessionDetails.getUserEonId();
System.out.println("subscriberUserEONId from session is: "+subscriberUserEONId);
SimpleDateFormat sdfDate=new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat sdfTime=new SimpleDateFormat("HH:mm:ss");
TemplateManagement dbObj=new TemplateManagement();
EventManager dbObj1=new EventManager(); // for events
List templateNames=dbObj.getTemplates(subscriberUserEONId);
List eventIds=dbObj1.getEventsCompleteList(subscriberUserEONId); // for events
System.out.println("size of list of templates is:" + templateNames.size());
System.out.println("size of list of events is: "+eventIds.size()); // for events
if(type==null)
html+="<table><tr><td>Select Your Invitation Card: ";
html+="<select name=\"templateName\" class=\"cell\" onchange=getImage(this.value) onblur=checkTemplate() tabindex=\"1\">";
html+= "<option value=\"0\">Select</option>";
HashMap hmap=new HashMap();
try {
for(int i=0;i<templateNames.size();i++) {
TemplateMaster bean=(TemplateMaster)templateNames.get(i);
Integer templateid=bean.getTemplateId();
String templatepath=bean.getTemplateRelevantpath();
hmap.put(templateid,templatepath);
System.out.println("path recevied from db for template is: "+templatepath);
System.out.println("template id received from db is : "+templateid);
html+= "<option value=\"" + templateid + "\">" + templateid + "</option>";
} catch(Exception ee) {ee.printStackTrace();}
session.setAttribute("hmap", hmap);
html+="</select></td></tr><tr><td>";
System.out.println("path new is : "+html);
html+="</td>";
System.out.println(html);
html+="</td></tr><tr><td>Select an Event: ";
html+="<select name=\"eventId\" class=\"cell\">";
try {
for(int j=0;j<eventIds.size();j++) {
EventMaster bean=(EventMaster)eventIds.get(j);
String eventName=bean.getEventName();
Integer eventId1=bean.getEventId();
String eventStartDate=sdfDate.format(bean.getEventStartdate());
String eventStartTime=sdfTime.format(bean.getEventStarttime());
String eventId=eventName+" on "+eventStartDate+" at "+eventStartTime;
System.out.println("event id from database is : "+eventId1);
System.out.println("event list from database is : "+eventId);
html+= "<option value=\"" + eventId1 + "\">" + eventId + "</option>";
} catch(Exception eee) {eee.printStackTrace();}
html+="</select></td></tr></table>";
System.out.println(html);
out.println(html);
out.flush();
out.close();
if(type!=null)
html1+="</td></tr><tr><td>Select an Event: ";
html1+="<select name=\"eventId\" class=\"cell\">";
try {
for(int j=0;j<eventIds.size();j++) {
EventMaster bean=(EventMaster)eventIds.get(j);
Integer eventId1=bean.getEventId();
String eventId2=eventId1.toString();
String eventName=bean.getEventName();
String eventStartDate=sdfDate.format(bean.getEventStartdate());
String eventStartTime=sdfTime.format(bean.getEventStarttime());
String eventId=eventName+" on "+eventStartDate+" at "+eventStartTime;
System.out.println(eventId);
html1+= "<option value=\""
+ eventId2 + "\">" + eventId + "</option>";
} catch(Exception eee) {eee.printStackTrace();}
html1+="</select></td></tr></table>";
out.println(html1);
out.flush();
out.close();
}chinni wrote:
java.lang.NullPointerException
com.koffee.eon.subscriber.action.TemplateNames.doPost(TemplateNames.java:66)Do you understand when a NPE will be thrown? Some object reference at line 66 of TemplateNames.java is null while you didn't expect and you still invoke/access it. To fix this, add a nullcheck or just instantiate the reference.
Maybe you are looking for
-
Loading datafrom a PL/SQL table into the Database table
I have created two procedures to try and achieve the problem at hand. It retrieves and displays the record from a DBMS_OUTPUT.PUT_LINE prospective as indicated in (1&2), but I am having difficulty loading these values into a PL/SQL table from the pac
-
Ipod playlists deleted since synched to itunes
created 6 new playlists for my ipod from my ipod since updated to iOS 4. connected to itunes to load music from cd and disconnected to find that all my playlists have been deleted. oh im real ******.
-
The Downloads window will not open. How can I fix it?
I am using Firefox 4.0.1 on my Mac 10.6.7. I have been using Firefox 4 since April, but two days ago my Tools>Downloads command (keyboard shortcut cmd-J) quit working. My downloaded items do go into the downloads folder, but I cannot access the folde
-
Service OracleOraDb10g_home1CMan does not start
Hello, OS-Version: Windows-Server 2009 R2 Oracle Version: 10.2.0.4 CPU Jan 2009 CMan Version CMAN for 32-bit Windows: Version 10.2.0.4.0 - Production I configured connection manager an started the following service: OracleOraDb10g_home1CMAdmin When I
-
PROBLEM WITH USB TO IRDA DEVICE!!!HELP HELP HELP
I'm having serious problem to connect an usb to irda device. My Ibook G4 12" 1,33 Ghz doesn't want to recognized this device. Any other usb devices it recognized immediately but this one no!!! Is there ayone that can help me? I need this device so th