question On SVNKit and java applet

View: New views
2 Messages — Rating Filter:   Alert me  

question On SVNKit and java applet

by bob2dog :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I'm trying to make an applet use SVNKit , But it is not working very well for me. I build my Applet in Eclipse 3.2 and everything is ok . But when I try to build it in IE6.0, I get an error message telling me : -------------------------------------------------------------------------------------------------------------------------- java.lang.ExceptionInInitializerError at org.tmatesoft.svn.core.wc.SVNClientManager.(SVNClientManager.java:140) at org.tmatesoft.svn.core.wc.SVNClientManager.newInstance(SVNClientManager.java:182) at svn.setSvnClientManger.initSvnClientManger(setSvnClientManger.java:32) at svn.setSvnClientManger.(setSvnClientManger.java:23) at svn.svnLogManger.initSvnLogManger(svnLogManger.java:25) at svn.svnLogManger.(svnLogManger.java:21) at svn.svnLogTree.init(svnLogTree.java:48) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission javasvn.http.keepAlive read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPropertyAccess(Unknown Source) at java.lang.System.getProperty(Unknown Source) at org.tmatesoft.svn.core.wc.DefaultSVNRepositoryPool.(DefaultSVNRepositoryPool.java:85) ... 9 more-------------------------------------------------------------------------------------------------------------------------- In fact , I hava a key building by keytool.

Re: question On SVNKit and java applet

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

The reason of the problem, is that there are more strict security
permissions for applets, comparing to standalone Java application. In
your case applet is not allowed to call System.getProperty method and
SVNKit make extensive use of System properties.

Read this FAQ on applets for more information -
http://java.sun.com/sfaq/#getProps

I think that may be you should consider creating a Java application
installable with Java web start technology
(http://java.sun.com/products/javawebstart/) rather than using Java applet.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

bob2dog wrote:

> Hi, I'm trying to make an applet use SVNKit , But it is not working very
> well for me. I build my Applet in Eclipse 3.2 and everything is ok . But
> when I try to build it in IE6.0, I get an error message telling me :
> --------------------------------------------------------------------------------------------------------------------------
> *java.lang.ExceptionInInitializerError at
> org.tmatesoft.svn.core.wc.SVNClientManager.(SVNClientManager.java:140)
> at
> org.tmatesoft.svn.core.wc.SVNClientManager.newInstance(SVNClientManager.java:182)
> at
> svn.setSvnClientManger.initSvnClientManger(setSvnClientManger.java:32)
> at svn.setSvnClientManger.(setSvnClientManger.java:23) at
> svn.svnLogManger.initSvnLogManger(svnLogManger.java:25) at
> svn.svnLogManger.(svnLogManger.java:21) at
> svn.svnLogTree.init(svnLogTree.java:48) at
> sun.applet.AppletPanel.run(Unknown Source) at
> java.lang.Thread.run(Unknown Source) Caused by:
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission javasvn.http.keepAlive read) at
> java.security.AccessControlContext.checkPermission(Unknown Source) at
> java.security.AccessController.checkPermission(Unknown Source) at
> java.lang.SecurityManager.checkPermission(Unknown Source) at
> java.lang.SecurityManager.checkPropertyAccess(Unknown Source) at
> java.lang.System.getProperty(Unknown Source) at
> org.tmatesoft.svn.core.wc.DefaultSVNRepositoryPool.(DefaultSVNRepositoryPool.java:85)
> ... 9
> more*--------------------------------------------------------------------------------------------------------------------------
> In fact , I hava a key building by keytool.
> ------------------------------------------------------------------------
> View this message in context: question On SVNKit and java applet
> <http://www.nabble.com/question-On-SVNKit-and-java-applet-tf3769732.html#a10657926>
> Sent from the JavaSVN - User mailing list archive
> <http://www.nabble.com/JavaSVN---User-f10899.html> at Nabble.com.