Bug 172017 - JavaAppletViewer::KJavaAppletViewer: Can't communicate with kded_kpassw
Summary: JavaAppletViewer::KJavaAppletViewer: Can't communicate with kded_kpassw
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 176822 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-02 09:32 UTC by Don Cohen
Modified: 2010-05-10 14:01 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Don Cohen 2008-10-02 09:32:47 UTC
Version:           4.1.2 (using Devel)
OS:                Linux
Installed from:    Compiled sources

BTW this is fedora 10, x86_64
I have at least one java applet working from inside konqueror, but another one fails as follows (I run from command line in order to get this output):

$ konqueror
konqueror(5481) KJavaAppletViewer::KJavaAppletViewer: Can't communicate with kded_kpasswdserver! 
Locking assertion failure.  Backtrace:
#0 /usr/lib64/libxcb-xlib.so.0 [0x3e45a0097c]
#1 /usr/lib64/libxcb-xlib.so.0(xcb_xlib_lock+0x17) [0x3e45a00af7]
#2 /usr/lib64/libX11.so.6 [0x3e45e4c520]
#3 /usr/lib64/libX11.so.6(XGetWindowProperty+0x42) [0x3e45e2a072]
#4 /usr/lib64/libQtGui.so.4 [0x3e4d00c3bc]
#5 /usr/lib64/libX11.so.6(XCheckIfEvent+0x79) [0x3e45e1e799]
#6 /usr/lib64/libQtGui.so.4(_ZN18QX11EmbedContainer11embedClientEm+0x234) [0x3e4d00c9b4]
#7 /usr/lib64/kde4/kjavaappletviewer.so [0x7f3475e760dc]
#8 /usr/lib64/kde4/kjavaappletviewer.so [0x7f3475e7620a]
#9 /usr/lib64/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x244) [0x3e4bb56764]
#10 /usr/lib64/libkdeui.so.5(_ZN13KWindowSystem11windowAddedEm+0x32) [0x3e4e103672]
#11 /usr/lib64/libkdeui.so.5 [0x3e4e1059cc]
#12 /usr/lib64/libkdeui.so.5(_ZN11NETRootInfo6updateEPKm+0x1288) [0x3e4e114648]
#13 /usr/lib64/libkdeui.so.5(_ZN11NETRootInfo5eventEP7_XEventPmi+0x2ab) [0x3e4e1149bb]
#14 /usr/lib64/libkdeui.so.5 [0x3e4e105e4b]
#15 /usr/lib64/libkdeui.so.5(_ZN12KApplication14x11EventFilterEP7_XEvent+0x83) [0x3e4dffa463]
#16 /usr/lib64/libQtGui.so.4 [0x3e4cfdb3bf]
#17 /usr/lib64/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xe6) [0x3e4cfeca46]
#18 /usr/lib64/libQtGui.so.4 [0x3e4d0139d4]
#19 /lib64/libglib-2.0.so.0(g_main_context_dispatch+0x23b) [0x3e4563775b]
Locking assertion failure.  Backtrace:
#0 /usr/lib64/libxcb-xlib.so.0 [0x3e45a0097c]
#1 /usr/lib64/libxcb-xlib.so.0(xcb_xlib_unlock+0x24) [0x3e45a00a34]
#2 /usr/lib64/libX11.so.6 [0x3e45e4c440]
#3 /usr/lib64/libX11.so.6(XCheckIfEvent+0xb2) [0x3e45e1e7d2]
#4 /usr/lib64/libQtGui.so.4(_ZN18QX11EmbedContainer11embedClientEm+0x234) [0x3e4d00c9b4]
#5 /usr/lib64/kde4/kjavaappletviewer.so [0x7f3475e760dc]
#6 /usr/lib64/kde4/kjavaappletviewer.so [0x7f3475e7620a]
#7 /usr/lib64/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x244) [0x3e4bb56764]
#8 /usr/lib64/libkdeui.so.5(_ZN13KWindowSystem11windowAddedEm+0x32) [0x3e4e103672]
#9 /usr/lib64/libkdeui.so.5 [0x3e4e1059cc]
#10 /usr/lib64/libkdeui.so.5(_ZN11NETRootInfo6updateEPKm+0x1288) [0x3e4e114648]
#11 /usr/lib64/libkdeui.so.5(_ZN11NETRootInfo5eventEP7_XEventPmi+0x2ab) [0x3e4e1149bb]
#12 /usr/lib64/libkdeui.so.5 [0x3e4e105e4b]
#13 /usr/lib64/libkdeui.so.5(_ZN12KApplication14x11EventFilterEP7_XEvent+0x83) [0x3e4dffa463]
#14 /usr/lib64/libQtGui.so.4 [0x3e4cfdb3bf]
#15 /usr/lib64/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xe6) [0x3e4cfeca46]
#16 /usr/lib64/libQtGui.so.4 [0x3e4d0139d4]
#17 /lib64/libglib-2.0.so.0(g_main_context_dispatch+0x23b) [0x3e4563775b]
#18 /lib64/libglib-2.0.so.0 [0x3e4563af2d]
#19 /lib64/libglib-2.0.so.0(g_main_context_iteration+0x6b) [0x3e4563b0eb]

The following is in the java console:
Java VM version: 1.6.0_0
Java VM vendor:  Sun Microsystems Inc.
WARNING: Security Manager disabled!
Java VM: Sun Microsystems Inc. 1.6.0_0
WARNING: Security Manager disabled!
----------------------------------------------------
Konqueror Java Console Help
  c: clear console
  g: run garbage collection
  h: show help
  m: show memory info
  s: print system properties
  t: list threads
  x: empty classloader cache
----------------------------------------------------
system look and feel class: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
free: 36189 allocated: 41728 max: 619008 total free memory: 613469

At least some of that stuff at the end comes from the applet, so the applet did start.
Comment 1 Mario Italo 2008-12-23 22:32:59 UTC
It happens to me too. I'm using Fedora 10 x86_64 and KDE 4.1.85 (4.2 Beta), but it already used to happen when I was using KDE 4.1.3.
Comment 2 Jakub Stachowski 2009-01-10 14:41:12 UTC
*** Bug 176822 has been marked as a duplicate of this bug. ***
Comment 3 MartinG 2009-03-30 23:53:00 UTC
I'm hit this bug when I try to log on to my online bank (which use "BankID" a soon to be defacto standard for all kinds of online authentications in Norway)

Fedora 10, fully updated:
kernel-2.6.27.19-170.2.35.fc10.x86_64
kdelibs-4.2.1-4.fc10.x86_64

This is what Konqueror's (4.2.1 (KDE 4.2.1)) applet console spits out:

Java VM version: 1.6.0_13
Java VM vendor:  Sun Microsystems Inc.
Java VM: Sun Microsystems Inc. 1.6.0_13
SecurityManager=org.kde.kjas.server.KJASSecurityManager@45c3e9ba
----------------------------------------------------
Konqueror Java Console Help
  c: clear console
  g: run garbage collection
  h: show help
  m: show memory info
  s: print system properties
  t: list threads
  x: empty classloader cache
----------------------------------------------------
SkandiaBanken detector applet version 1.0.1611.0.
Detecting Java settings.
-----------------------------------------------------------
Java version       : 1.6.0_13
Java vendor        : Sun Microsystems Inc.
Java vendor url    : http://java.sun.com/
Java class version : 50.0
OS NAME            : Linux
OS Arch            : amd64
OS Version         : 2.6.27.19-170.2.35.fc10.x86_64
-----------------------------------------------------------
Check OK. Starting BankID client applet.


BankID client version: 2.7.3.5
java.lang.NullPointerException
	at java.util.Hashtable.put(Unknown Source)
	at org.kde.kjas.server.KJASProtocolHandler.processCommand(KJASProtocolHandler.java:312)
	at org.kde.kjas.server.KJASProtocolHandler.commandLoop(KJASProtocolHandler.java:89)
	at org.kde.kjas.server.Main.main(Main.java:175)
Error during state 2
Backtrace: 
java.security.AccessControlException: access denied (java.lang.RuntimePermission getProtectionDomain)
	at java.security.AccessControlContext.checkPermission(Unknown Source)
	at java.security.AccessController.checkPermission(Unknown Source)
	at java.lang.SecurityManager.checkPermission(Unknown Source)
	at org.kde.kjas.server.KJASSecurityManager.checkPermission(KJASSecurityManager.java:64)
	at java.lang.Class.getProtectionDomain(Unknown Source)
	at no.bbs.netcentric.NetCentricApplet.F(Unknown Source)
	at no.bbs.netcentric.NetCentricApplet.<init>(Unknown Source)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at org.kde.kjas.server.KJASAppletStub$RunThread.doState(KJASAppletStub.java:173)
	at org.kde.kjas.server.KJASAppletStub$RunThread.run(KJASAppletStub.java:255)


Please note that I have not been able to make this BankID applet work in any of Opera, Firefox or Opera.
Comment 4 Børre Gaup 2009-05-13 16:32:43 UTC
I have the same problem as MartinG in comment #3.

When I try to log into the bank a grey rectangle appears in the browser. I get a security warning, press Allow all. 

The output from the Java Console is (the error part appears after a couple of minutes):
 
Java VM version: 1.6.0_13
Java VM vendor:  Sun Microsystems Inc.
Java VM: Sun Microsystems Inc. 1.6.0_13
SecurityManager=org.kde.kjas.server.KJASSecurityManager@9b6220
----------------------------------------------------
Konqueror Java Console Help
  c: clear console
  g: run garbage collection
  h: show help
  m: show memory info
  s: print system properties
  t: list threads
  x: empty classloader cache
----------------------------------------------------
Java version       : 1.6.0_13
Java vendor        : Sun Microsystems Inc.
Java vendor url    : http://java.sun.com/
Java class version : 50.0
OS NAME            : Linux
OS Arch            : i386
OS Version         : 2.6.29.2boerre
BankID client version: 2.7.3.5
java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:394)
	at org.kde.kjas.server.KJASProtocolHandler.processCommand(KJASProtocolHandler.java:312)
	at org.kde.kjas.server.KJASProtocolHandler.commandLoop(KJASProtocolHandler.java:89)
	at org.kde.kjas.server.Main.main(Main.java:175)
Error during state 2
Backtrace: 
java.security.AccessControlException: access denied (java.lang.RuntimePermission getProtectionDomain)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
	at java.security.AccessController.checkPermission(AccessController.java:546)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
	at org.kde.kjas.server.KJASSecurityManager.checkPermission(KJASSecurityManager.java:64)
	at java.lang.Class.getProtectionDomain(Class.java:2106)
	at no.bbs.netcentric.NetCentricApplet.F(Unknown Source)
	at no.bbs.netcentric.NetCentricApplet.<init>(Unknown Source)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at org.kde.kjas.server.KJASAppletStub$RunThread.doState(KJASAppletStub.java:173)
	at org.kde.kjas.server.KJASAppletStub$RunThread.run(KJASAppletStub.java:255)

This is using konqueror 4.2.2 in KDE 4.2.3
The applet works in Firefox 3.0.10 and Opera 9.64.2480
Comment 5 Jens Takle 2009-09-29 15:17:50 UTC
*** This bug has been confirmed by popular vote. ***
Comment 6 Allan Sandfeld 2010-05-10 14:01:07 UTC
Fixed in trunk and 4.4 branch by commits c1124673 and c1124675