powered by Jive Software

Loads of errors

Hi guys

I’'m trying to build a webchat client with the smack library. When I try to implement the simple login example I get the following, Any takers ?

java.lang.NullPointerException

at java.security.CodeSource.matchLocation(Unknown Source)

at java.security.CodeSource.implies(Unknown Source)

at sun.security.provider.PolicyFile$5.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at sun.security.provider.PolicyFile.getPermissions(Unknown Source)

at sun.security.provider.PolicyFile.getPermissions(Unknown Source)

at sun.security.provider.PolicyFile.getPermissions(Unknown Source)

at sun.security.provider.PolicyFile.implies(Unknown Source)

at java.security.ProtectionDomain.implies(Unknown Source)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at org.jivesoftware.smack.XMPPConnection.(XMPPConnection.java:102)

at uib.uibWidgetBean.jabberLogin(uibWidgetBean.java:95)

at jrun__dynamic__tabpage12ejsp15._jspService(jrun__dynamic__tabpage12ejsp15.java: 106)

at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)

at jrun.jsp.JSPServlet.service(JSPServlet.java:110)

at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)

at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)

at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226)

at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)

at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:198)

at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)

at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

java.lang.ExceptionInInitializerError

at uib.uibWidgetBean.jabberLogin(uibWidgetBean.java:95)

at jrun__dynamic__tabpage12ejsp15._jspService(jrun__dynamic__tabpage12ejsp15.java: 106)

at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)

at jrun.jsp.JSPServlet.service(JSPServlet.java:110)

at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)

at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)

at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226)

at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)

at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:198)

at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)

at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Caused by: java.lang.NullPointerException

at java.security.CodeSource.matchLocation(Unknown Source)

at java.security.CodeSource.implies(Unknown Source)

at sun.security.provider.PolicyFile$5.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at sun.security.provider.PolicyFile.getPermissions(Unknown Source)

at sun.security.provider.PolicyFile.getPermissions(Unknown Source)

at sun.security.provider.PolicyFile.getPermissions(Unknown Source)

at sun.security.provider.PolicyFile.implies(Unknown Source)

at java.security.ProtectionDomain.implies(Unknown Source)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at org.jivesoftware.smack.XMPPConnection.(XMPPConnection.java:102)

… 11 more

javax.servlet.ServletException

at jrun.jsp.runtime.Utils.handleException(Utils.java:61)

at jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.java:384)

at jrun__dynamic__tabpage12ejsp15._jspService(jrun__dynamic__tabpage12ejsp15.java: 116)

at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)

at jrun.jsp.JSPServlet.service(JSPServlet.java:110)

at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)

at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)

at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226)

at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)

at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:198)

at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)

at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

I’‘d recommend disabling the security policy for the web app. It looks like it’‘s causing some problems (although it’'s not clear why).

Regards,

Mat

Thanks Matt. Im not sure how to do that, but I will give it a try.

Hi again

I have searched hi and low and cant seem to find this setting. Could you point me in the right direction ?

These settings vary widely between web app servers. You should ping the support or community resources for your paticular server for details.

-iain